nixpkgs/pkgs/tools/networking/haguichi/default.nix
OPNA2608 f30c8b032c haguichi: Modernise
- nixfmt-rfc-style formatting
- finalAttrs pattern
- no meta-wide with lib
- refs/tags rev
- meta.changelog
- reorder some things
2024-07-25 21:55:15 +02:00

68 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
desktop-file-utils,
glib,
gtk4,
libadwaita,
libgee,
libportal-gtk4,
meson,
ninja,
pkg-config,
python3,
vala,
wrapGAppsHook4,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "haguichi";
version = "1.5.0";
src = fetchFromGitHub {
owner = "ztefn";
repo = "haguichi";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-Rhag2P4GAO9qhcajwDHIkgzKZqNii/SgvFwCI6Kc8XE=";
};
postPatch = ''
patchShebangs meson_post_install.py
'';
strictDeps = true;
nativeBuildInputs = [
meson
ninja
pkg-config
python3
vala
wrapGAppsHook4
desktop-file-utils # for update-desktop-database
glib # for glib-compile-resources
gtk4 # for gtk-update-icon-cache
];
buildInputs = [
glib
gtk4
libadwaita
libgee
libportal-gtk4
];
passthru.updateScript = ./update.sh;
meta = {
description = "Graphical frontend for Hamachi on Linux";
mainProgram = "haguichi";
homepage = "https://haguichi.net/";
changelog = "https://haguichi.net/news/release${lib.strings.replaceStrings ["."] [""] finalAttrs.version}";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ OPNA2608 ];
};
})