dunst: refactoring (#15665)
- Use `fetchFromGitHub` - No longer generate wrapper dunst doesn't appear to shell out to dbus; nor should it, really - Use standard buildPhase - Split outputs - Also build dbus service file, so that dunst can be used with services.dbus.packages
This commit is contained in:
parent
b614d72f40
commit
ed50c2fae3
|
@ -1,40 +1,37 @@
|
|||
{ stdenv, fetchurl, coreutils, unzip, which, pkgconfig, dbus
|
||||
, freetype, xdg_utils, libXext, glib, pango, cairo, libX11, libnotify
|
||||
, libxdg_basedir, libXScrnSaver, xproto, libXinerama, perl, gdk_pixbuf
|
||||
, dbus_daemon, makeWrapper
|
||||
{ stdenv, fetchFromGitHub
|
||||
, pkgconfig, which, perl
|
||||
, cairo, dbus, freetype, gdk_pixbuf, glib, libX11, libXScrnSaver
|
||||
, libXext, libXinerama, libnotify, libxdg_basedir, pango, xproto
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dunst-1.1.0";
|
||||
name = "dunst-${version}";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/knopwob/dunst/archive/v${version}.tar.gz";
|
||||
sha256 = "0x95f57s0a96c4lifxdpf73v706iggwmdw8742mabbjnxq55l1qs";
|
||||
src = fetchFromGitHub {
|
||||
owner = "knopwob";
|
||||
repo = "dunst";
|
||||
rev = "v${version}";
|
||||
sha256 = "102s0rkcdz22hnacsi3dhm7kj3lsw9gnikmh3a7wk862nkvvwjmk";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
[ coreutils unzip which pkgconfig dbus freetype libnotify gdk_pixbuf
|
||||
xdg_utils libXext glib pango cairo libX11 libxdg_basedir
|
||||
libXScrnSaver xproto libXinerama perl dbus_daemon makeWrapper ];
|
||||
nativeBuildInputs = [ perl pkgconfig which ];
|
||||
|
||||
buildPhase = ''
|
||||
export VERSION=${version};
|
||||
export PREFIX=$out;
|
||||
make dunst;
|
||||
'';
|
||||
buildInputs = [
|
||||
cairo dbus freetype gdk_pixbuf glib libX11 libXScrnSaver libXext
|
||||
libXinerama libnotify libxdg_basedir pango xproto
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/dunst" \
|
||||
--prefix PATH : '${dbus_daemon.out}/bin'
|
||||
'';
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
meta = {
|
||||
description = "lightweight and customizable notification daemon";
|
||||
makeFlags = [ "PREFIX=$(out)" "VERSION=$(version)" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight and customizable notification daemon";
|
||||
homepage = http://www.knopwob.org/dunst/;
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
license = licenses.bsd3;
|
||||
# NOTE: 'unix' or even 'all' COULD work too, I'm not sure
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.domenkozar ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.domenkozar ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue