texlive.withPackages: replace force-output.sh with preHook

This commit is contained in:
Vincenzo Mantova
2026-05-23 13:51:07 +01:00
parent 27da8a3737
commit c8b6540469
2 changed files with 6 additions and 8 deletions
@@ -10,7 +10,6 @@
makeFontsConf,
makeWrapper,
runCommand,
writeShellScript,
toTLPkgSets,
perl,
@@ -279,12 +278,12 @@ lib.fix (
);
derivationArgs = {
outputs = [ outName ];
nativeBuildInputs = [
# force the output to be ${outName} or nix-env will not work
(writeShellScript "force-output.sh" ''
export out="''${${outName}-}"
'')
];
# force the output to be ${outName} or nix-env will not work
preHook = ''
export out="''${${outName}}"
'';
inherit meta passthru;
};
}
@@ -243,7 +243,6 @@ let
makeFontsConf
makeWrapper
runCommand
writeShellScript
toTLPkgSets
perl
coreutils