depot/pkgs/tools/networking/haguichi/default.nix

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

68 lines
1.3 KiB
Nix
Raw Normal View History

{
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 ];
};
})