Commit d78b3d97 authored by Kirens's avatar Kirens
Browse files

nixVersions.nix_2_26: Fix doc and man outputs

When $doc and $man are directories ln silently creates links within them
instead. By specifying `ln -T` our intent is communicated, and the build
fails unless we also remove their mistaken mkdir
parent f3e1ea27
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ stdenv.mkDerivation (finalAttrs: {
      devPaths = lib.mapAttrsToList (_k: lib.getDev) finalAttrs.finalPackage.libs;
    in
    ''
      mkdir -p $out $dev/nix-support $doc $man
      mkdir -p $out $dev/nix-support

      # Custom files
      echo $libs >> $dev/nix-support/propagated-build-inputs
@@ -168,8 +168,8 @@ stdenv.mkDerivation (finalAttrs: {
      done

      # Forwarded outputs
      ln -s ${nix-manual} $doc
      ln -s ${nix-manual.man} $man
      ln -sT ${nix-manual} $doc
      ln -sT ${nix-manual.man} $man
    '';

  passthru = {