python310Packages.onlykey-solo-python: fix compatibility with fido2 1.1.3 (#354382)
[NixPkgs.git] / pkgs / desktops / pantheon / services / elementary-notifications / default.nix
blobf21115fd0dab76005abd4fd1b07bab0bccea5b53
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , nix-update-script
5 , meson
6 , ninja
7 , pkg-config
8 , vala
9 , gtk3
10 , glib
11 , granite
12 , libgee
13 , libhandy
14 , libcanberra-gtk3
15 , wrapGAppsHook3
18 stdenv.mkDerivation rec {
19   pname = "elementary-notifications";
20   version = "7.0.1";
22   src = fetchFromGitHub {
23     owner = "elementary";
24     repo = "notifications";
25     rev = version;
26     sha256 = "sha256-of7Tw38yJAhHKICU3XxGwIOwqfUhrL7SGKqFd9Dps/I=";
27   };
29   nativeBuildInputs = [
30     glib # for glib-compile-schemas
31     meson
32     ninja
33     pkg-config
34     vala
35     wrapGAppsHook3
36   ];
38   buildInputs = [
39     glib
40     granite
41     gtk3
42     libcanberra-gtk3
43     libgee
44     libhandy
45   ];
47   postPatch = ''
48     # https://github.com/elementary/notifications/issues/222
49     substituteInPlace src/FdoActionGroup.vala \
50       --replace-fail "out VariantType" "out unowned VariantType"
51   '';
53   passthru = {
54     updateScript = nix-update-script { };
55   };
57   meta = with lib; {
58     description = "GTK notification server for Pantheon";
59     homepage = "https://github.com/elementary/notifications";
60     license = licenses.gpl3Plus;
61     maintainers = teams.pantheon.members;
62     platforms = platforms.linux;
63     mainProgram = "io.elementary.notifications";
64   };