Unverified Commit 538f7045 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

gnuradio: lndir to $man properly (#479311)

parents e01f273d d0591459
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -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