2007-09-03 13:10:57 +01:00
|
|
|
args: with args; stdenv.mkDerivation {
|
|
|
|
name = "wmiimenu-3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2010-05-08 18:30:34 +01:00
|
|
|
url = http://dl.suckless.org/wmii/wmii-3.1.tar.gz;
|
2007-09-03 13:10:57 +01:00
|
|
|
sha256 = "0sviwxbanpsfdm55zvx9hflncw35slkz41xr517y3yfgxx6qlhlk";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 libixp ];
|
|
|
|
inherit libixp;
|
|
|
|
|
2008-03-23 16:52:27 +00:00
|
|
|
phases = "unpackPhase installPhase";
|
2007-09-03 13:10:57 +01: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 20:16:00 +00:00
|
|
|
mkdir -p \$out/bin
|
2007-09-03 13:10:57 +01:00
|
|
|
cp cmd/wmiimenu \$out/bin
|
|
|
|
";
|
|
|
|
meta = { homepage = "www.suckless.org";
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "One small tool of the wmii window manger to let the user select an item from a list by filtering";
|
2015-05-27 20:56:04 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2007-09-03 13:10:57 +01:00
|
|
|
};
|
|
|
|
}
|