Merge pull request #145533 from Artturin/builddotnetpkgconfig
This commit is contained in:
commit
69bdaa04d8
2 changed files with 8 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
||||||
attrsOrig @
|
attrsOrig @
|
||||||
{ baseName
|
{ baseName
|
||||||
, version
|
, version
|
||||||
, buildInputs ? []
|
, nativeBuildInputs ? []
|
||||||
, xBuildFiles ? [ ]
|
, xBuildFiles ? [ ]
|
||||||
, xBuildFlags ? [ "/p:Configuration=Release" ]
|
, xBuildFlags ? [ "/p:Configuration=Release" ]
|
||||||
, outputFiles ? [ "bin/Release/*" ]
|
, outputFiles ? [ "bin/Release/*" ]
|
||||||
|
@ -19,12 +19,12 @@ attrsOrig @
|
||||||
attrs = {
|
attrs = {
|
||||||
name = "${baseName}-${version}";
|
name = "${baseName}-${version}";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [
|
pkg-config
|
||||||
mono
|
|
||||||
dotnetbuildhelpers
|
|
||||||
makeWrapper
|
makeWrapper
|
||||||
] ++ buildInputs;
|
dotnetbuildhelpers
|
||||||
|
mono
|
||||||
|
] ++ nativeBuildInputs;
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
runHook preConfigure
|
runHook preConfigure
|
||||||
|
@ -87,7 +87,7 @@ attrsOrig @
|
||||||
then
|
then
|
||||||
echo "$dll already exported by a buildInputs, not re-exporting"
|
echo "$dll already exported by a buildInputs, not re-exporting"
|
||||||
else
|
else
|
||||||
${dotnetbuildhelpers}/bin/create-pkg-config-for-dll.sh "$out/lib/pkgconfig" "$dll"
|
create-pkg-config-for-dll.sh "$out/lib/pkgconfig" "$dll"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
@ -113,4 +113,4 @@ attrsOrig @
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (attrs // (builtins.removeAttrs attrsOrig [ "buildInputs" ] ))
|
stdenv.mkDerivation (attrs // (builtins.removeAttrs attrsOrig [ "nativeBuildInputs" ] ))
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchNuGet
|
, fetchNuGet
|
||||||
, glib
|
, glib
|
||||||
, pkg-config
|
|
||||||
, mono
|
, mono
|
||||||
, overrides ? {}
|
, overrides ? {}
|
||||||
}:
|
}:
|
||||||
|
|
Loading…
Reference in a new issue