From 6872544c1becda21a6c878aed8d1c3384c8ec10b Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 25 Mar 2022 20:29:21 +0100 Subject: [PATCH] haguichi: init at 1.4.5 --- pkgs/tools/networking/haguichi/default.nix | 54 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/tools/networking/haguichi/default.nix diff --git a/pkgs/tools/networking/haguichi/default.nix b/pkgs/tools/networking/haguichi/default.nix new file mode 100644 index 00000000000..34ba1da28e4 --- /dev/null +++ b/pkgs/tools/networking/haguichi/default.nix @@ -0,0 +1,54 @@ +{ stdenv +, lib +, fetchFromGitHub +, meson +, ninja +, pkg-config +, python3 +, vala +, wrapGAppsHook +, desktop-file-utils +, glib +, gtk3 +}: + +stdenv.mkDerivation rec { + pname = "haguichi"; + version = "1.4.5"; + + src = fetchFromGitHub { + owner = "ztefn"; + repo = "haguichi"; + rev = version; + sha256 = "1kgjl9g9lyg00cfx4x28s4xyqsqk5057xv6k2cj6ckg9lkxaixvc"; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + python3 + vala + wrapGAppsHook + 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 + ''; + + meta = with lib; { + description = "Graphical frontend for Hamachi on Linux"; + homepage = "https://haguichi.net/"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ OPNA2608 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 98e3c19b45e..1bf5beffd4f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6725,6 +6725,8 @@ with pkgs; pxz = callPackage ../tools/compression/pxz { }; + haguichi = callPackage ../tools/networking/haguichi { }; + hans = callPackage ../tools/networking/hans { }; h2 = callPackage ../servers/h2 { };