Merge pull request #165780 from OPNA2608/init/haguichi

haguichi: init at 1.4.5
This commit is contained in:
Sandro 2022-06-11 19:02:06 +02:00 committed by GitHub
commit d06755d422
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 72 additions and 0 deletions

View file

@ -169,6 +169,7 @@
./programs/gpaste.nix
./programs/gnupg.nix
./programs/gphoto2.nix
./programs/haguichi.nix
./programs/hamster.nix
./programs/htop.nix
./programs/iftop.nix

View file

@ -0,0 +1,15 @@
{ lib, pkgs, config, ... }:
with lib;
{
options.programs.haguichi = {
enable = mkEnableOption "Haguichi, a Linux GUI frontend to the proprietary LogMeIn Hamachi";
};
config = mkIf config.programs.haguichi.enable {
environment.systemPackages = with pkgs; [ haguichi ];
services.logmein-hamachi.enable = true;
};
}

View file

@ -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 ];
};
}

View file

@ -6850,6 +6850,8 @@ with pkgs;
pxz = callPackage ../tools/compression/pxz { };
haguichi = callPackage ../tools/networking/haguichi { };
hans = callPackage ../tools/networking/hans { };
h2 = callPackage ../servers/h2 { };