From 8d4fdc55561f35f1baf7107d6b7dda024863a1f2 Mon Sep 17 00:00:00 2001 From: NullBite Date: Thu, 15 Feb 2024 20:02:26 +0100 Subject: [PATCH] Make wrapper for each symlink idk why i have to do this but the name of the executable seems to be directly encoded into the produced binary --- pkgs/atool-wrapped/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/atool-wrapped/default.nix b/pkgs/atool-wrapped/default.nix index b319335..8e4f8eb 100644 --- a/pkgs/atool-wrapped/default.nix +++ b/pkgs/atool-wrapped/default.nix @@ -24,11 +24,12 @@ stdenvNoCC.mkDerivation { nativeBuildInputs = [ makeBinaryWrapper ]; src = ./.; installPhase = '' - makeBinaryWrapper "${atool}/bin/atool" "$out/bin/atool" \ - --inherit-argv0 --prefix PATH : "${wrappedPath}" - for i in acat adiff als apack arepack aunpack ; do - ln -s $out/bin/atool $out/bin/$i + # symlinking them doesn't work for some reason so i have to build multiple + for i in atool acat adiff als apack arepack aunpack ; do + makeBinaryWrapper "${atool}/bin/$i" "$out/bin/$i" \ + --inherit-argv0 --prefix PATH : "${wrappedPath}" done + # i have no idea if this is the "right" way to do this mkdir -p "$out/share" ln -s "${atool}/share/man" "$out/share/man"