2007-09-03 14:10:57 +02:00
|
|
|
args: with args; stdenv.mkDerivation {
|
|
|
|
name = "wmiimenu-3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2010-05-08 19:30:34 +02:00
|
|
|
url = http://dl.suckless.org/wmii/wmii-3.1.tar.gz;
|
2007-09-03 14:10:57 +02:00
|
|
|
sha256 = "0sviwxbanpsfdm55zvx9hflncw35slkz41xr517y3yfgxx6qlhlk";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 libixp ];
|
|
|
|
inherit libixp;
|
|
|
|
|
2008-03-23 17:52:27 +01:00
|
|
|
phases = "unpackPhase installPhase";
|
2007-09-03 14:10:57 +02:00
|
|
|
|
|
|
|
installPhase = "
|
|
|
|
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%\" \\
|
|
|
|
config.mk
|
|
|
|
# don't use the default one installed by nixos!
|
|
|
|
# sed -i -e \"s%ixpc%\$libixp/bin/ixpc%\" wmiir
|
|
|
|
|
|
|
|
# This will fail but wmiimenu has been built (hack!)
|
|
|
|
set +e
|
|
|
|
make &> /dev/null
|
|
|
|
set -e
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p \$out/bin
|
2007-09-03 14:10:57 +02:00
|
|
|
cp cmd/wmiimenu \$out/bin
|
|
|
|
";
|
|
|
|
meta = { homepage = "www.suckless.org";
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "One small tool of the wmii window manger to let the user select an item from a list by filtering";
|
2007-09-03 14:10:57 +02:00
|
|
|
license="MIT";
|
|
|
|
};
|
|
|
|
}
|