diff --git a/pkgs/applications/radio/gnuradio/wrapper.nix b/pkgs/applications/radio/gnuradio/wrapper.nix index f7b96b1c1b95..a741697af3b1 100644 --- a/pkgs/applications/radio/gnuradio/wrapper.nix +++ b/pkgs/applications/radio/gnuradio/wrapper.nix @@ -9,7 +9,7 @@ # For the wrapper makeWrapper, # For lndir - xorg, + lndir, # To define a the gnuradio.pkgs scope newScope, # For Emulating wrapGAppsHook3 @@ -222,13 +222,16 @@ let ; nativeBuildInputs = [ makeWrapper - xorg.lndir + lndir ]; buildCommand = '' - mkdir $out + ${builtins.concatStringsSep "\n" ( + map (output: '' + mkdir ''$${output} + lndir -silent ${unwrapped.${output}} ''$${output} + '') outputs + )} cd $out - lndir -silent ${unwrapped.out} - lndir -silent ${unwrapped.man} ${lib.optionalString (extraPackages != [ ]) ( builtins.concatStringsSep "\n" ( map (pkg: '' @@ -246,7 +249,7 @@ let mv -f "$i".tmp "$i" if head -1 "$i" | grep -q ${unwrapped.python}; then substituteInPlace "$i" \ - --replace ${unwrapped.python} ${pythonEnv} + --replace-fail ${unwrapped.python} ${pythonEnv} fi wrapProgram "$i" ${makeWrapperArgs} done