buildenv: fix version not being set

This commit is contained in:
jopejoe1
2024-11-26 23:46:24 +01:00
parent b497dfa184
commit e37eeadacd
+7 -3
View File
@@ -77,17 +77,21 @@ let
(lib.remove null)
];
in runCommand name
rec {
(rec {
inherit manifest ignoreCollisions checkCollisionContents passthru
meta pathsToLink extraPrefix postBuild
nativeBuildInputs buildInputs pname version;
nativeBuildInputs buildInputs;
pkgs = builtins.toJSON chosenOutputs;
extraPathsFrom = lib.optional includeClosures (writeClosure pathsForClosure);
preferLocalBuild = true;
allowSubstitutes = false;
# XXX: The size is somewhat arbitrary
passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
}
} // lib.optionalAttrs (pname != null) {
inherit pname;
} // lib.optionalAttrs (version != null) {
inherit version;
})
''
${buildPackages.perl}/bin/perl -w ${builder}
eval "$postBuild"