2013-12-16 04:29:42 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libX11, libXft, libXinerama, libXpm }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2013-12-16 04:29:42 +01:00
|
|
|
name = "dzen2-0.9.5";
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libX11 libXft libXinerama libXpm ];
|
2013-12-16 04:29:42 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/robm/dzen/tarball/master/dzen2-0.9.5git.tar.gz";
|
|
|
|
sha256 = "d4f7943cd39dc23fd825eb684b49dc3484860fa8443d30b06ee38af72a53b556";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
CFLAGS=" -Wall -Os ''${INCS} -DVERSION=\"''${VERSION}\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`"
|
|
|
|
LIBS=" -L/usr/lib -lc -lXft -lXpm -lXinerama -lX11"
|
|
|
|
echo "CFLAGS=$CFLAGS" >>config.mk
|
|
|
|
echo "LIBS=$LIBS" >>config.mk
|
|
|
|
echo "LDFLAGS=$LIBS" >>config.mk
|
|
|
|
substituteInPlace config.mk --replace /usr/local "$out"
|
|
|
|
substituteInPlace gadgets/config.mk --replace /usr/local "$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p $out/bin $out/man/man1
|
|
|
|
make clean install
|
|
|
|
cd gadgets
|
|
|
|
make clean install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/robm/dzen";
|
2013-12-16 04:29:42 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
description = "X notification utility";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|