gnuradio: lndir to $man properly (#479311)

This commit is contained in:
Doron Behar
2026-01-12 12:03:45 +00:00
committed by GitHub
+9 -6
View File
@@ -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