From e333a71478730c63510b48131282f97b5e9c1af9 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Sun, 12 Mar 2017 16:24:43 +0000 Subject: [PATCH] scala: put docs in correct subdirectory Under NixOS, /run/current-system/sw/share/doc was getting the license file, etc. --- pkgs/development/compilers/scala/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/compilers/scala/default.nix b/pkgs/development/compilers/scala/default.nix index 8e1f8dd4722..7971d7a8b23 100644 --- a/pkgs/development/compilers/scala/default.nix +++ b/pkgs/development/compilers/scala/default.nix @@ -16,6 +16,10 @@ stdenv.mkDerivation rec { rm "bin/"*.bat mv * $out + # put docs in correct subdirectory + mkdir -p $out/share/doc + mv $out/doc $out/share/doc/scala + for p in $(ls $out/bin/) ; do wrapProgram $out/bin/$p \ --prefix PATH ":" ${coreutils}/bin \