From 53fa9e865169023ddb54a54e30bb0d2fccf8e050 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 22 Oct 2016 20:16:35 +0200 Subject: [PATCH] ratpoison: reduce closure size - Move contrib to separate output - Move doc and info to separate outputs Reduces the closure size from 96 to 38M --- pkgs/applications/window-managers/ratpoison/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/window-managers/ratpoison/default.nix b/pkgs/applications/window-managers/ratpoison/default.nix index e550f9fdd83f..810803866890 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";