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.

81 lines
1.5 KiB
Nix
Raw Normal View History

2024-05-07 13:59:18 +03:00
{
lib,
buildNpmPackage,
fetchFromGitHub,
meson,
ninja,
pkg-config,
gobject-introspection,
gjs,
glib-networking,
gnome,
gtk-layer-shell,
libpulseaudio,
libsoup_3,
networkmanager,
upower,
typescript,
wrapGAppsHook3,
linux-pam,
nix-update-script,
2024-03-04 17:19:12 +03:00
}:
buildNpmPackage rec {
pname = "ags";
2024-05-07 13:48:27 +03:00
version = "1.8.2";
2024-03-04 17:19:12 +03:00
src = fetchFromGitHub {
owner = "Aylur";
repo = "ags";
rev = "v${version}";
2024-05-07 13:48:27 +03:00
hash = "sha256-ebnkUaee/pnfmw1KmOZj+MP1g5wA+8BT/TPKmn4Dkwc=";
2024-03-04 17:19:12 +03:00
fetchSubmodules = true;
};
npmDepsHash = "sha256-ucWdADdMqAdLXQYKGOXHNRNM9bhjKX4vkMcQ8q/GZ20=";
2024-05-07 13:59:18 +03:00
mesonFlags = [ (lib.mesonBool "build_types" true) ];
2024-03-04 17:19:12 +03:00
nativeBuildInputs = [
meson
ninja
pkg-config
gjs
gobject-introspection
typescript
wrapGAppsHook3
2024-03-04 17:19:12 +03: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 13:48:27 +03:00
passthru.updateScript = nix-update-script {};
2024-05-07 13:59:18 +03:00
meta = {
2024-03-04 17:19:12 +03:00
homepage = "https://github.com/Aylur/ags";
description = "A EWW-inspired widget system as a GJS library";
2024-05-07 13:59:18 +03:00
changelog = "https://github.com/Aylur/ags/releases/tag/v${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
foo-dogsquared
johnrtitor
];
2024-03-04 17:19:12 +03:00
mainProgram = "ags";
2024-05-07 13:59:18 +03:00
platforms = lib.platforms.linux;
2024-03-04 17:19:12 +03:00
};
}