From 9cda0f4f61cb05b2465d3b6c51735a4921f0bfbe Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 20 Nov 2021 18:00:27 +0100 Subject: [PATCH] mono-dll-fixer: remove builder.sh --- pkgs/build-support/mono-dll-fixer/builder.sh | 4 ---- pkgs/build-support/mono-dll-fixer/default.nix | 7 +++++-- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 pkgs/build-support/mono-dll-fixer/builder.sh diff --git a/pkgs/build-support/mono-dll-fixer/builder.sh b/pkgs/build-support/mono-dll-fixer/builder.sh deleted file mode 100644 index 67abc465a9bd..000000000000 --- a/pkgs/build-support/mono-dll-fixer/builder.sh +++ /dev/null @@ -1,4 +0,0 @@ -source $stdenv/setup - -substitute $dllFixer $out --subst-var-by perl $perl/bin/perl -chmod +x $out diff --git a/pkgs/build-support/mono-dll-fixer/default.nix b/pkgs/build-support/mono-dll-fixer/default.nix index 8f7d1e795d79..09a986015eed 100644 --- a/pkgs/build-support/mono-dll-fixer/default.nix +++ b/pkgs/build-support/mono-dll-fixer/default.nix @@ -1,8 +1,11 @@ {stdenv, perl}: - stdenv.mkDerivation { name = "mono-dll-fixer"; - builder = ./builder.sh; dllFixer = ./dll-fixer.pl; + dontUnpack = true; + installPhase = '' + substitute $dllFixer $out --subst-var-by perl $perl/bin/perl + chmod +x $out + ''; inherit perl; }