From fe06c43d7091c56c8e054b71c64ce81628fa6f13 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 7 May 2024 11:36:55 +0200 Subject: [PATCH] gauche: remove dependency onto gaucheBootstrap This reduces closure size of the built package by about a third. The only reference to gaucheBootstrap in the built package was in $out/share/gauche-0.98/0.9.13/package-templates/configure, where it is incorrect: anyone using the template shipped with the gauche package would have unintentially used the bootstrap version of gauche instead. --- pkgs/development/interpreters/gauche/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/interpreters/gauche/default.nix b/pkgs/development/interpreters/gauche/default.nix index aa58be639b9d..d596455fe015 100644 --- a/pkgs/development/interpreters/gauche/default.nix +++ b/pkgs/development/interpreters/gauche/default.nix @@ -21,6 +21,8 @@ stdenv.mkDerivation rec { ''; postPatch = '' + substituteInPlace ext/package-templates/configure \ + --replace "#!/usr/bin/env gosh" "#!$out/bin/gosh" patchShebangs . '';