mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, libxslt
|
|
, docbook-xsl-ns
|
|
, glib
|
|
, gdk-pixbuf
|
|
, gnome
|
|
, buildPackages
|
|
, withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
|
|
, gobject-introspection
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libnotify";
|
|
version = "0.8.3";
|
|
|
|
outputs = [ "out" "man" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
hash = "sha256-7o8++UYVatNAb99F/u29zZMtvSEatPFvdeuk82+y9sA=";
|
|
};
|
|
|
|
mesonFlags = [
|
|
# disable tests as we don't need to depend on GTK (2/3)
|
|
"-Dtests=false"
|
|
"-Ddocbook_docs=disabled"
|
|
"-Dgtk_doc=false"
|
|
"-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
libxslt
|
|
docbook-xsl-ns
|
|
glib # for glib-mkenums needed during the build
|
|
] ++ lib.optionals withIntrospection [
|
|
gobject-introspection
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
gdk-pixbuf
|
|
glib
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Library that sends desktop notifications to a notification daemon";
|
|
homepage = "https://gitlab.gnome.org/GNOME/libnotify";
|
|
license = licenses.lgpl21;
|
|
maintainers = teams.gnome.members;
|
|
mainProgram = "notify-send";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|