Skip to content

Commit

Permalink
flake.nix: Use nixpkgs.lib.fileContents
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Dec 7, 2022
1 parent cc27bd0 commit af8136a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit af8136a

Please sign in to comment.