flake.nix: Use nixpkgs.lib.fileContents

This commit is contained in:
Robert Hensing 2022-12-07 13:55:31 +01:00
parent cc27bd0633
commit af8136afd4

View File

@ -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 ""