buildDotnetPackage: move buildInputs to nativeBuildInputs

they're run during the build so they belong there
This commit is contained in:
Artturin 2021-11-11 22:23:40 +02:00
parent f77006c308
commit ffb9a309b6

View file

@ -4,7 +4,6 @@ attrsOrig @
{ baseName
, version
, nativeBuildInputs ? []
, buildInputs ? []
, xBuildFiles ? [ ]
, xBuildFlags ? [ "/p:Configuration=Release" ]
, outputFiles ? [ "bin/Release/*" ]
@ -22,12 +21,10 @@ attrsOrig @
nativeBuildInputs = [
pkg-config
] ++ nativeBuildInputs;
buildInputs = [
mono
dotnetbuildhelpers
makeWrapper
] ++ buildInputs;
dotnetbuildhelpers
mono
] ++ nativeBuildInputs;
configurePhase = ''
runHook preConfigure
@ -90,7 +87,7 @@ attrsOrig @
then
echo "$dll already exported by a buildInputs, not re-exporting"
else
${dotnetbuildhelpers}/bin/create-pkg-config-for-dll.sh "$out/lib/pkgconfig" "$dll"
create-pkg-config-for-dll.sh "$out/lib/pkgconfig" "$dll"
fi
done
done
@ -116,4 +113,4 @@ attrsOrig @
'';
};
in
stdenv.mkDerivation (attrs // (builtins.removeAttrs attrsOrig [ "nativeBuildInputs" "buildInputs" ] ))
stdenv.mkDerivation (attrs // (builtins.removeAttrs attrsOrig [ "nativeBuildInputs" ] ))