2024-05-15 15:35:15 +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,
|
|
|
|
linux-pam,
|
|
|
|
nix-update-script,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "ags";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.8.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Aylur";
|
|
|
|
repo = "ags";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-ebnkUaee/pnfmw1KmOZj+MP1g5wA+8BT/TPKmn4Dkwc=";
|
2024-04-21 15:54:59 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
npmDepsHash = "sha256-ucWdADdMqAdLXQYKGOXHNRNM9bhjKX4vkMcQ8q/GZ20=";
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
mesonFlags = [ (lib.mesonBool "build_types" true) ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gjs
|
|
|
|
gobject-introspection
|
|
|
|
typescript
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2024-04-21 15:54:59 +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-15 15:35:15 +00:00
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
|
|
|
|
meta = {
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/Aylur/ags";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "EWW-inspired widget system as a GJS library";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/Aylur/ags/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
foo-dogsquared
|
|
|
|
johnrtitor
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ags";
|
2024-05-15 15:35:15 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
}
|