17 stdenv.mkDerivation rec {
19 version = "unstable-2022-04-04";
21 src = fetchFromGitHub {
24 rev = "ff120c7fee6e1b3a30a4a800074394327fb1da9d";
25 hash = "sha256-KEmWnobpT/5TdgT2HGPCpG1duz9Q6Z6PFSEBs2Ce+7g=";
30 substituteInPlace lib/libstuff/x11/xft.c --replace "libXft.so" "$(pkg-config --variable=libdir xft)/libXft.so.2"
31 substituteInPlace cmd/wmii.sh.sh --replace "\$(which which)" "${which}/bin/which"
35 for file in $(grep -lr '#!.*sh'); do
36 sed -i 's|#!.*sh|#!${dash}/bin/dash|' $file
39 cat <<EOF >> config.mk
41 LIBIXP = ${libixp}/lib/libixp.a
42 BINSH = ${dash}/bin/dash
46 # Remove optional python2 functionality
48 rm -rf $out/lib/python* $out/etc/wmii-hg/python
51 nativeBuildInputs = [ pkg-config unzip ];
66 homepage = "https://github.com/0intro/wmii";
67 description = "A small, scriptable window manager, with a 9P filesystem interface and an acme-like layout";
68 maintainers = with lib.maintainers; [ kovirobi ];
69 license = lib.licenses.mit;
70 platforms = with lib.platforms; linux;