Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 gettext, 7 glib, 8 libcanberra-gtk3, 9 libnotify, 10 libwnck, 11 gtk-layer-shell, 12 gtk3, 13 libxml2, 14 mate-desktop, 15 mate-panel, 16 wrapGAppsHook3, 17 mateUpdateScript, 18}: 19 20stdenv.mkDerivation rec { 21 pname = "mate-notification-daemon"; 22 version = "1.28.3"; 23 24 src = fetchurl { 25 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 26 hash = "sha256-4Azssf+fdbnMwmRFWORDQ7gJQe20A3fdgQDtOSKt9BM="; 27 }; 28 29 nativeBuildInputs = [ 30 pkg-config 31 gettext 32 libxml2 # for xmllint 33 wrapGAppsHook3 34 ]; 35 36 buildInputs = [ 37 libcanberra-gtk3 38 libnotify 39 libwnck 40 gtk-layer-shell 41 gtk3 42 mate-desktop 43 mate-panel 44 ]; 45 46 configureFlags = [ "--enable-in-process" ]; 47 48 env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 49 50 enableParallelBuilding = true; 51 52 passthru.updateScript = mateUpdateScript { inherit pname; }; 53 54 meta = with lib; { 55 description = "Notification daemon for MATE Desktop"; 56 mainProgram = "mate-notification-properties"; 57 homepage = "https://github.com/mate-desktop/mate-notification-daemon"; 58 license = with licenses; [ 59 gpl2Plus 60 gpl3Plus 61 ]; 62 platforms = platforms.unix; 63 teams = [ teams.mate ]; 64 }; 65}