3
0
Fork 0
forked from mirrors/nixpkgs

ratpoison: reduce closure size

- Move contrib to separate output
- Move doc and info to separate outputs

Reduces the closure size from 96 to 38M
This commit is contained in:
Joachim Fasting 2016-10-22 20:16:35 +02:00
parent a0ac2ae35e
commit 53fa9e8651
No known key found for this signature in database
GPG key ID: 7544761007FE4E08

View file

@ -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";