azure-storage-azcopy: 10.27.1 -> 10.28.0 (#377459)
[NixPkgs.git] / pkgs / by-name / bu / budgie-screensaver / package.nix
blob85aeef52ec9ec67c24ad8cd674373ad592d38f5b
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   dbus-glib,
6   glib,
7   gnome-desktop,
8   gtk3,
9   intltool,
10   libgnomekbd,
11   libX11,
12   linux-pam,
13   meson,
14   ninja,
15   nix-update-script,
16   pkg-config,
17   systemd,
18   testers,
19   wrapGAppsHook3,
20   xorg,
23 stdenv.mkDerivation (finalAttrs: {
24   pname = "budgie-screensaver";
25   version = "5.1.0";
27   src = fetchFromGitHub {
28     owner = "BuddiesOfBudgie";
29     repo = "budgie-screensaver";
30     rev = "v${finalAttrs.version}";
31     hash = "sha256-N8x9hdbaMDisTbQPJedNO4UMLnCn+Q2hhm4udJZgQlc=";
32   };
34   outputs = [
35     "out"
36     "man"
37   ];
39   nativeBuildInputs = [
40     intltool
41     meson
42     ninja
43     pkg-config
44     wrapGAppsHook3
45   ];
47   buildInputs = [
48     dbus-glib
49     glib
50     gnome-desktop
51     gtk3
52     libgnomekbd
53     libX11
54     linux-pam
55     systemd
56     xorg.libXxf86vm
57   ];
59   # Fix GCC 14 build.
60   # https://hydra.nixos.org/build/282164464/nixlog/3
61   env.NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE -Wno-error=implicit-function-declaration";
63   passthru = {
64     tests.version = testers.testVersion {
65       package = finalAttrs.finalPackage;
66       command = "budgie-screensaver-command --version";
67     };
69     updateScript = nix-update-script { };
70   };
72   meta = {
73     description = "Fork of old GNOME Screensaver for purposes of providing an authentication prompt on wake";
74     homepage = "https://github.com/BuddiesOfBudgie/budgie-screensaver";
75     changelog = "https://github.com/BuddiesOfBudgie/budgie-screensaver/releases/tag/v${finalAttrs.version}";
76     license = lib.licenses.gpl2Only;
77     maintainers = lib.teams.budgie.members;
78     mainProgram = "budgie-screensaver";
79     platforms = lib.platforms.linux;
80   };