2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libX11, libXft, libXinerama, libXpm }:
|
2013-12-16 03:29:42 +00:00
|
|
|
|
2021-11-07 13:50:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dzen2";
|
|
|
|
version = "0.9.5";
|
2013-12-16 03:29:42 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ libX11 libXft libXinerama libXpm ];
|
2013-12-16 03:29:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-07 13:50:48 +00:00
|
|
|
url = "https://github.com/robm/dzen/tarball/master/dzen2-${version}git.tar.gz";
|
2013-12-16 03:29:42 +00:00
|
|
|
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 01:11:51 +00:00
|
|
|
homepage = "https://github.com/robm/dzen";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.mit;
|
2013-12-16 03:29:42 +00:00
|
|
|
description = "X notification utility";
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2013-12-16 03:29:42 +00:00
|
|
|
};
|
|
|
|
}
|