2021-01-19 06:50:56 +00:00
|
|
|
{ runCommand, mono, pkg-config }:
|
2016-03-20 16:41:20 +00:00
|
|
|
runCommand
|
2015-05-22 14:25:02 +01:00
|
|
|
"dotnetbuildhelpers"
|
|
|
|
{ preferLocalBuild = true; }
|
|
|
|
''
|
|
|
|
target="$out/bin"
|
|
|
|
mkdir -p "$target"
|
|
|
|
|
|
|
|
for script in ${./create-pkg-config-for-dll.sh} ${./patch-fsharp-targets.sh} ${./remove-duplicated-dlls.sh} ${./placate-nuget.sh} ${./placate-paket.sh}
|
|
|
|
do
|
|
|
|
scriptName="$(basename "$script" | cut -f 2- -d -)"
|
|
|
|
cp -v "$script" "$target"/"$scriptName"
|
|
|
|
chmod 755 "$target"/"$scriptName"
|
|
|
|
patchShebangs "$target"/"$scriptName"
|
2021-01-19 06:50:56 +00:00
|
|
|
substituteInPlace "$target"/"$scriptName" --replace pkg-config ${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config
|
2015-05-22 14:25:02 +01:00
|
|
|
substituteInPlace "$target"/"$scriptName" --replace monodis ${mono}/bin/monodis
|
|
|
|
done
|
|
|
|
''
|