aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-12-07 13:55:31 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-12-07 13:55:31 +0100
commitaf8136afd4440bbabb4ea214bfd3dc15ffebf469 (patch)
tree54600361736149f107b4da59c83b7628f21f37be /flake.nix
parentcc27bd06339283a8189de5c4b1a981bd9c85c211 (diff)
flake.nix: Use nixpkgs.lib.fileContents
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 38b469fdb..5127ee2a3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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 ""