depot/third_party/nixpkgs/pkgs/tools/networking/haguichi/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

57 lines
1,020 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
, python3
, vala
, wrapGAppsHook3
, desktop-file-utils
, glib
, gtk3
}:
stdenv.mkDerivation rec {
pname = "haguichi";
version = "1.4.6";
src = fetchFromGitHub {
owner = "ztefn";
repo = "haguichi";
rev = version;
hash = "sha256-H/Aw8zJOioOLWxiM/pMb+QSIoEp3zIkLb26S6QN3hv0=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
python3
vala
wrapGAppsHook3
desktop-file-utils # for update-desktop-database
glib # for glib-compile-resources
gtk3 # for gtk-update-icon-cache
];
buildInputs = [
glib
gtk3
];
postPatch = ''
patchShebangs meson_post_install.py
'';
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Graphical frontend for Hamachi on Linux";
mainProgram = "haguichi";
homepage = "https://haguichi.net/";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ OPNA2608 ];
};
}