Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
67 lines
1.3 KiB
Nix
67 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 ];
|
|
};
|
|
})
|