From dc70fcd94b2839f3ad2976613733eef3862d029a Mon Sep 17 00:00:00 2001 From: Demin Dmitriy Date: Thu, 29 Oct 2015 05:54:31 +0300 Subject: build-dotnet-package: add optional makeWrapperArgs argument 3 lines of code are shamelessly stolen from buildPythonPackage --- pkgs/build-support/build-dotnet-package/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pkgs/build-support') diff --git a/pkgs/build-support/build-dotnet-package/default.nix b/pkgs/build-support/build-dotnet-package/default.nix index 00be987af75..3d24f6fb434 100644 --- a/pkgs/build-support/build-dotnet-package/default.nix +++ b/pkgs/build-support/build-dotnet-package/default.nix @@ -9,6 +9,9 @@ attrsOrig @ , outputFiles ? [ "bin/Release/*" ] , dllFiles ? [ "*.dll" ] , exeFiles ? [ "*.exe" ] +# Additional arguments to pass to the makeWrapper function, which wraps +# generated binaries. +, makeWrapperArgs ? [ ] , ... }: let arrayToShell = (a: toString (map (lib.escape (lib.stringToCharacters "\\ ';$`()|<>\t") ) a)); @@ -98,7 +101,10 @@ attrsOrig @ [ -f "$exe" ] || continue mkdir -p "$out"/bin commandName="$(basename -s .exe "$(echo "$exe" | tr "[A-Z]" "[a-z]")")" - makeWrapper "${mono}/bin/mono \"$exe\"" "$out"/bin/"$commandName" + makeWrapper \ + "${mono}/bin/mono \"$exe\"" \ + "$out"/bin/"$commandName" \ + ''${makeWrapperArgs} done done -- cgit 1.4.1