streamlink: 7.1.1 -> 7.1.2 (#373269)
[NixPkgs.git] / pkgs / by-name / ag / ags / package.nix
blob09efa681b42ab97551da114b477f67ef61d562c3
2   lib,
3   buildNpmPackage,
4   fetchFromGitHub,
5   meson,
6   ninja,
7   pkg-config,
8   gobject-introspection,
9   gjs,
10   glib-networking,
11   gnome-bluetooth,
12   gtk-layer-shell,
13   libpulseaudio,
14   libsoup_3,
15   networkmanager,
16   upower,
17   typescript,
18   wrapGAppsHook3,
19   linux-pam,
20   nix-update-script,
23 buildNpmPackage rec {
24   pname = "ags";
25   version = "1.8.2";
27   src = fetchFromGitHub {
28     owner = "Aylur";
29     repo = "ags";
30     rev = "v${version}";
31     hash = "sha256-ebnkUaee/pnfmw1KmOZj+MP1g5wA+8BT/TPKmn4Dkwc=";
32     fetchSubmodules = true;
33   };
35   npmDepsHash = "sha256-ucWdADdMqAdLXQYKGOXHNRNM9bhjKX4vkMcQ8q/GZ20=";
37   mesonFlags = [ (lib.mesonBool "build_types" true) ];
39   nativeBuildInputs = [
40     meson
41     ninja
42     pkg-config
43     gjs
44     gobject-introspection
45     typescript
46     wrapGAppsHook3
47   ];
49   # Most of the build inputs here are basically needed for their typelibs.
50   buildInputs = [
51     gjs
52     glib-networking
53     gnome-bluetooth
54     gtk-layer-shell
55     libpulseaudio
56     libsoup_3
57     linux-pam
58     networkmanager
59     upower
60   ];
62   postPatch = ''
63     chmod u+x ./post_install.sh && patchShebangs ./post_install.sh
64   '';
66   passthru.updateScript = nix-update-script { };
68   meta = {
69     homepage = "https://github.com/Aylur/ags";
70     description = "EWW-inspired widget system as a GJS library";
71     changelog = "https://github.com/Aylur/ags/releases/tag/v${version}";
72     license = lib.licenses.gpl3Plus;
73     maintainers = with lib.maintainers; [
74       foo-dogsquared
75       johnrtitor
76     ];
77     mainProgram = "ags";
78     platforms = lib.platforms.linux;
79   };