2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2015-12-29 10:13:12 +00:00
|
|
|
, libX11, libXext, libXft }:
|
|
|
|
|
|
|
|
let version = "1.40"; in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "windowlab";
|
|
|
|
inherit version;
|
2015-12-29 10:13:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nickgravgaard.com/windowlab/windowlab-${version}.tar";
|
|
|
|
sha256 = "1fx4jwq4s98p2wpvawsiww7d6568bpjgcjpks61dzfj8p2j32s4d";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ libX11 libXext libXft ];
|
2015-12-29 10:13:12 +00:00
|
|
|
|
|
|
|
postPatch =
|
|
|
|
''
|
|
|
|
mv Makefile Makefile.orig
|
|
|
|
echo \
|
|
|
|
"
|
|
|
|
DEFINES += -DXFT
|
|
|
|
EXTRA_INC += $(pkg-config --cflags xft)
|
|
|
|
EXTRA_LIBS += $(pkg-config --libs xft)
|
|
|
|
" > Makefile
|
|
|
|
sed "s|/usr/local|$out|g" Makefile.orig >> Makefile
|
|
|
|
'';
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
meta = with lib;
|
2015-12-29 10:13:12 +00:00
|
|
|
{ description = "Small and simple stacking window manager";
|
|
|
|
homepage = "http://nickgravgaard.com/windowlab/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ ehmry ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-11-05 23:28:15 +00:00
|
|
|
}
|