summary refs log tree commit diff
path: root/pkgs/applications/window-managers
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-10-22 20:16:35 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-10-22 21:06:21 +0200
commit53fa9e865169023ddb54a54e30bb0d2fccf8e050 (patch)
treec8057bca09f55ee7685c6f8c78e01784d606b4f4 /pkgs/applications/window-managers
parenta0ac2ae35e45b28fe071300de17e51d0ef610507 (diff)
downloadnixpkgs-53fa9e865169023ddb54a54e30bb0d2fccf8e050.tar
nixpkgs-53fa9e865169023ddb54a54e30bb0d2fccf8e050.tar.gz
nixpkgs-53fa9e865169023ddb54a54e30bb0d2fccf8e050.tar.bz2
nixpkgs-53fa9e865169023ddb54a54e30bb0d2fccf8e050.tar.lz
nixpkgs-53fa9e865169023ddb54a54e30bb0d2fccf8e050.tar.xz
nixpkgs-53fa9e865169023ddb54a54e30bb0d2fccf8e050.tar.zst
nixpkgs-53fa9e865169023ddb54a54e30bb0d2fccf8e050.zip
ratpoison: reduce closure size
- Move contrib to separate output
- Move doc and info to separate outputs

Reduces the closure size from 96 to 38M
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r--pkgs/applications/window-managers/ratpoison/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/ratpoison/default.nix b/pkgs/applications/window-managers/ratpoison/default.nix
index e550f9fdd83..81080386689 100644
--- a/pkgs/applications/window-managers/ratpoison/default.nix
+++ b/pkgs/applications/window-managers/ratpoison/default.nix
@@ -12,11 +12,19 @@ stdenv.mkDerivation rec {
     sha256 = "1w502z55vv7zs45l80nsllqh9fvfwjfdfi11xy1qikhzdmirains";
   };
 
+  outputs = [ "out" "contrib" "doc" "info" ];
+
   buildInputs =
     [ pkgconfig perl autoconf automake
       libX11 inputproto libXt libXpm libXft libXtst xextproto libXi
       fontconfig freetype readline ];
 
+  postInstall = ''
+    mkdir -p $contrib/{bin,share}
+    mv $out/bin/rpws $contrib/bin
+    mv $out/share/ratpoison $contrib/share
+  '';
+
   meta = with stdenv.lib; {
     homepage = "http://www.nongnu.org/ratpoison/";
     description = "Simple mouse-free tiling window manager";