nixpkgs/pkgs/applications/misc/notify-osd/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
985 B
Nix

{ lib, stdenv, fetchurl, pkg-config, glib, libwnck, libnotify, dbus-glib, makeWrapper, gsettings-desktop-schemas }:
stdenv.mkDerivation rec {
pname = "notify-osd";
version = "0.9.34";
src = fetchurl {
url = "https://launchpad.net/notify-osd/precise/${version}/+download/notify-osd-${version}.tar.gz";
sha256 = "0g5a7a680b05x27apz0y1ldl5csxpp152wqi42s107jymbp0s20j";
};
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [
glib libwnck libnotify dbus-glib
gsettings-desktop-schemas
];
configureFlags = [ "--libexecdir=$(out)/bin" ];
preFixup = ''
wrapProgram "$out/bin/notify-osd" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';
meta = with lib; {
description = "Daemon that displays passive pop-up notifications";
mainProgram = "notify-osd";
homepage = "https://launchpad.net/notify-osd";
license = licenses.gpl3;
maintainers = [ maintainers.bodil ];
platforms = platforms.linux;
};
}