2007-09-03 14:10:57 +02:00
|
|
|
args: with args; stdenv.mkDerivation {
|
2009-03-15 21:09:50 +01:00
|
|
|
name = "wmii-20071116";
|
2007-03-19 00:58:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-03-15 21:09:50 +01:00
|
|
|
url = http://code.suckless.org/dl/wmii/wmii-3.6.tar.gz;
|
|
|
|
sha256 = "46f39b788c5ef4695040b36cc7d9c539db0306bafc4d8cefdc5980ed4331b216";
|
2007-03-19 00:58:22 +01:00
|
|
|
};
|
2007-09-03 14:10:57 +02:00
|
|
|
|
2008-06-08 23:41:07 +02:00
|
|
|
buildInputs = [ libX11 libixp xextproto libXt libXext ];
|
2007-09-03 14:10:57 +02:00
|
|
|
inherit libixp;
|
2007-11-05 09:32:20 +01:00
|
|
|
|
2008-03-23 17:52:27 +01:00
|
|
|
phases = "unpackPhase installPhase";
|
2007-09-03 14:10:57 +02:00
|
|
|
|
|
|
|
installPhase = "
|
2008-06-08 23:41:07 +02:00
|
|
|
for i in libfmt libutf libregexp libbio; do
|
|
|
|
cd $i; make; cd ..
|
|
|
|
done
|
|
|
|
mkdir -p \$out/lib
|
|
|
|
cp ${libixp}/lib/libixp.a \$out/lib
|
2007-09-03 14:10:57 +02:00
|
|
|
export CFLAGS=\$NIX_CFLAGS_COMPILE
|
|
|
|
export LDFLAGS\=$(echo \$NIX_LDFLAGS | sed -e 's/-rpath/-L/g')
|
|
|
|
sed -i -e \"s%^PREFIX.*%PREFIX=\$out%\" \\
|
|
|
|
-e \"s%^\\(INCS.*\\)%\\1 \$NIX_CFLAGS_COMPILE%\" \\
|
|
|
|
-e \"s%^\\(LIBS.*\\)%\\1 \$LDFLAGS%\" \\
|
2008-06-08 23:41:07 +02:00
|
|
|
-e 's%^\\(AWKPATH = \\).*%\\1${gawk}/bin/gawk%' \\
|
2007-09-03 14:10:57 +02:00
|
|
|
config.mk
|
|
|
|
# don't use the default one installed by nixos!
|
2008-06-08 23:41:07 +02:00
|
|
|
#sed -i -e \"s%ixpc%\$libixp/bin/ixpc%\" wmiir
|
2007-09-03 14:10:57 +02:00
|
|
|
make install
|
|
|
|
";
|
|
|
|
meta = { homepage = "www.suckless.org";
|
|
|
|
description = "a really cool window manager which can by driven by keyboard only";
|
|
|
|
license="MIT";
|
|
|
|
};
|
2007-03-19 00:58:22 +01:00
|
|
|
}
|