diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-12-07 13:55:31 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-12-07 13:55:31 +0100 |
commit | af8136afd4440bbabb4ea214bfd3dc15ffebf469 (patch) | |
tree | 54600361736149f107b4da59c83b7628f21f37be /flake.nix | |
parent | cc27bd06339283a8189de5c4b1a981bd9c85c211 (diff) |
flake.nix: Use nixpkgs.lib.fileContents
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -11,8 +11,7 @@ officialRelease = false; - version = strip (builtins.readFile ./.version) + versionSuffix; - strip = nixpkgs.lib.removeSuffix "\n"; + version = nixpkgs.lib.fileContents ./.version + versionSuffix; versionSuffix = if officialRelease then "" |