mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
flake.nix: Use nixpkgs.lib.fileContents
This commit is contained in:
parent
cc27bd0633
commit
af8136afd4
1 changed files with 1 additions and 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 ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue