forked from lix-project/lix
flake.nix: Use nixpkgs.lib.fileContents
This commit is contained in:
parent
cc27bd0633
commit
af8136afd4
|
@ -11,8 +11,7 @@
|
||||||
|
|
||||||
officialRelease = false;
|
officialRelease = false;
|
||||||
|
|
||||||
version = strip (builtins.readFile ./.version) + versionSuffix;
|
version = nixpkgs.lib.fileContents ./.version + versionSuffix;
|
||||||
strip = nixpkgs.lib.removeSuffix "\n";
|
|
||||||
versionSuffix =
|
versionSuffix =
|
||||||
if officialRelease
|
if officialRelease
|
||||||
then ""
|
then ""
|
||||||
|
|
Loading…
Reference in a new issue