nixpkgs/pkgs/by-name/ag/ags/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.4 KiB
Nix
Raw Normal View History

2024-03-04 14:19:12 +00:00
{ lib
, buildNpmPackage
, fetchFromGitHub
, meson
, ninja
, pkg-config
, gobject-introspection
, gjs
, glib-networking
, gnome
, gtk-layer-shell
, libpulseaudio
, libsoup_3
, networkmanager
, upower
, typescript
, wrapGAppsHook3
2024-03-04 14:19:12 +00:00
, linux-pam
2024-05-07 10:48:27 +00:00
, nix-update-script
2024-03-04 14:19:12 +00:00
}:
buildNpmPackage rec {
pname = "ags";
2024-05-07 10:48:27 +00:00
version = "1.8.2";
2024-03-04 14:19:12 +00:00
src = fetchFromGitHub {
owner = "Aylur";
repo = "ags";
rev = "v${version}";
2024-05-07 10:48:27 +00:00
hash = "sha256-ebnkUaee/pnfmw1KmOZj+MP1g5wA+8BT/TPKmn4Dkwc=";
2024-03-04 14:19:12 +00:00
fetchSubmodules = true;
};
npmDepsHash = "sha256-ucWdADdMqAdLXQYKGOXHNRNM9bhjKX4vkMcQ8q/GZ20=";
mesonFlags = [
(lib.mesonBool "build_types" true)
];
nativeBuildInputs = [
meson
ninja
pkg-config
gjs
gobject-introspection
typescript
wrapGAppsHook3
2024-03-04 14:19:12 +00:00
];
# Most of the build inputs here are basically needed for their typelibs.
buildInputs = [
gjs
glib-networking
gnome.gnome-bluetooth
gtk-layer-shell
libpulseaudio
libsoup_3
linux-pam
networkmanager
upower
];
postPatch = ''
chmod u+x ./post_install.sh && patchShebangs ./post_install.sh
'';
2024-05-07 10:48:27 +00:00
passthru.updateScript = nix-update-script {};
2024-03-04 14:19:12 +00:00
meta = with lib; {
homepage = "https://github.com/Aylur/ags";
description = "A EWW-inspired widget system as a GJS library";
license = licenses.gpl3Plus;
2024-05-07 10:55:28 +00:00
maintainers = with maintainers; [ foo-dogsquared johnrtitor ];
2024-03-04 14:19:12 +00:00
mainProgram = "ags";
platforms = platforms.linux;
};
}