add wmii window manager + all dependencies. Interesting excercise...

svn path=/nixpkgs/trunk/; revision=8338
This commit is contained in:
Armijn Hemel 2007-03-18 23:58:22 +00:00
parent d86846bb6a
commit 2737cd9a8e
5 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,24 @@
source $stdenv/setup
postUnpack() {
cd $sourceRoot
cat >> config.mk << EOF
PREFIX=
DESTDIR=${out}
CFLAGS = -DVERSION=\\"\${VERSION}\\"
LDFLAGS = -lm -lX11 -lixp
AWKPATH=${gawk}/bin/gawk
CONFPREFIX = /etc
MANPREFIX = /share/man
EOF
cd ..
}
postUnpack=postUnpack
genericBuild

View File

@ -0,0 +1,15 @@
{ stdenv, fetchurl, libixp, x11, gawk}:
stdenv.mkDerivation {
name = "wmii-snap20070304";
description = "a really nice window manager which can be entirely driven by keyboard";
homepage = "http://www.suckless.org/wiki/wmii/";
builder = ./builder.sh;
src = fetchurl {
url = http://www.suckless.org/snaps/wmii-snap20070304.tgz;
sha256 = "06dd2e58c5cbb4adb9a8ba9cb8f19625a15df99b8ab7adec7ddc5844260e6a05";
};
buildInputs = [ libixp ];
propagatedBuildInputs = [ x11 ];
inherit gawk;
}

View File

@ -0,0 +1,32 @@
source $stdenv/setup
## oh, this is ugly. It would be way better to fix the Makefile instead
postUnpack() {
cd $sourceRoot
cat > config.mk <<END
VERSION = 0.3
PREFIX=
MANPREFIX=/share/man
INCS = -I.
LIBS = -L. -lc
LDFLAGS = \${LIBS}
CFLAGS = -g \${INCS} -DVERSION=\"\${VERSION}\"
SOFLAGS = -fPIC -shared
AR = ar cr
RANLIB = ranlib
END
echo -e "PREFIX=\nDESTDIR=${out}" >> config.mk
cd ..
}
postUnpack=postUnpack
genericBuild

View File

@ -0,0 +1,12 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "libixp-0.3";
description = "libixp is a stand-alone client/server 9P library including ixpc client which behaves like wmiir in the past. Its server api is based heavily on Plan 9's lib9p";
builder = ./builder.sh;
src = fetchurl {
url = http://www.suckless.org/snaps/libixp-0.3.tar.gz;
md5 = "d341eb9c8f5d233aba5aa2ea8295ca91";
};
}

View File

@ -1559,6 +1559,10 @@ rec {
inherit fetchurl stdenv libxml2;
};
libixp03 = import ../development/libraries/libixp/libixp-0.3.nix {
inherit fetchurl stdenv;
};
mesa = import ../development/libraries/mesa {
inherit fetchurl stdenv pkgconfig x11 libdrm;
inherit (xlibs) libXmu libXi makedepend glproto libXxf86vm;
@ -2933,6 +2937,11 @@ rec {
inherit (gtkLibs1x) gdkpixbuf;
};
wmii = import ../applications/window-managers/wmii {
libixp = libixp03;
inherit fetchurl stdenv x11 gawk;
};
wrapFirefox = firefox: import ../applications/networking/browsers/firefox-wrapper {
inherit stdenv firefox;
plugins = [