make tarball: refactor with fileContents

+1 -1
+1 -1
pkgs/top-level/make-tarball.nix
··· 15 15 src = nixpkgs; 16 16 17 17 inherit officialRelease; 18 - version = builtins.readFile ../../.version; 18 + version = pkgs.lib.fileContents ../../.version; 19 19 versionSuffix = "pre${toString nixpkgs.revCount}.${nixpkgs.shortRev}"; 20 20 21 21 buildInputs = [ nix.out jq ];