2007-09-03 13:10:57 +01:00
|
|
|
args: with args; stdenv.mkDerivation {
|
2010-05-09 15:17:15 +01:00
|
|
|
name = "wmii-3.9b1";
|
2007-03-18 23:58:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-05-09 15:17:15 +01:00
|
|
|
url = http://dl.suckless.org/wmii/wmii+ixp-3.9b1.tbz;
|
|
|
|
name = "wmii+ixp-3.9b1.tar.bz2"; # srcUnpack does not know about tbz
|
|
|
|
sha256 = "0i04mf5cl4m6mn5kcy913mmrnd2ir0ardmskswchnr6fxpbcyvml";
|
2007-03-18 23:58:22 +00:00
|
|
|
};
|
2007-09-03 13:10:57 +01:00
|
|
|
|
2010-05-09 15:17:15 +01:00
|
|
|
buildInputs = [ libX11 libixp xextproto libXt libXext libXft
|
|
|
|
freetype libXrandr libXinerama pkgconfig];
|
2007-09-03 13:10:57 +01:00
|
|
|
inherit libixp;
|
2007-11-05 08:32:20 +00:00
|
|
|
|
2008-03-23 16:52:27 +00:00
|
|
|
phases = "unpackPhase installPhase";
|
2007-09-03 13:10:57 +01:00
|
|
|
|
|
|
|
installPhase = "
|
2008-06-08 22:41:07 +01: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 13:10:57 +01: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 22:41:07 +01:00
|
|
|
-e 's%^\\(AWKPATH = \\).*%\\1${gawk}/bin/gawk%' \\
|
2007-09-03 13:10:57 +01:00
|
|
|
config.mk
|
|
|
|
# don't use the default one installed by nixos!
|
2008-06-08 22:41:07 +01:00
|
|
|
#sed -i -e \"s%ixpc%\$libixp/bin/ixpc%\" wmiir
|
2007-09-03 13:10:57 +01: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-18 23:58:22 +00:00
|
|
|
}
|