Unverified Commit aa228539 authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

R: add man output

parent e9efeac1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ stdenv.mkDerivation (finalAttrs: {

  outputs = [
    "out"
    "man"
    "tex"
  ];

+7 −0
Original line number Diff line number Diff line
@@ -11,6 +11,11 @@ symlinkJoin {
  preferLocalBuild = true;
  allowSubstitutes = false;

  outputs = [
    "out"
    "man"
  ];

  buildInputs = [ R ] ++ recommendedPackages ++ packages;
  paths = [ R ];

@@ -24,6 +29,8 @@ symlinkJoin {
      makeWrapper "${R}/bin/$exe" "$out/bin/$exe" \
        --prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"
    done

    ln -s ${R.man} $man
  '';

  # Make the list of recommended R packages accessible to other packages such as rpy2