depot/third_party/nixpkgs/pkgs/by-name/gs/gswatcher/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

71 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
vala,
wrapGAppsHook4,
desktop-file-utils,
pkg-config,
imagemagick,
gtk4,
libadwaita,
libgee,
lua5_4,
geoip,
geolite-legacy,
versionCheckHook,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gswatcher";
version = "1.7.2";
src = fetchFromGitHub {
owner = "lxndr";
repo = "gswatcher";
tag = "v${finalAttrs.version}";
hash = "sha256-qohd18bXr7gDSW51tCyslFX54Caux+YrsuJtoLs9Ofk=";
};
nativeBuildInputs = [
meson
ninja
vala
wrapGAppsHook4
desktop-file-utils
# Not packaged yet, optional
# appstream-util
pkg-config
imagemagick
];
buildInputs = [
gtk4
libadwaita
libgee
lua5_4
geoip
];
postInstall = ''
ln -s ${geolite-legacy}/share/GeoIP $out/share/GeoIP
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Simple game server monitor and administrative tool";
homepage = "https://github.com/lxndr/gswatcher";
license = with lib.licenses; [ agpl3Plus ];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ pluiedev ];
};
})