mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
a2093d3ff9
The upstream repo has regular releases and elementaryOS-specific releases. We only want the regular releases, so filter out the elementaryOS ones in a custom updateScript.
57 lines
988 B
Nix
57 lines
988 B
Nix
{ 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;
|
|
hash = "sha256-bPeo+qTpTWYkE9PsfgooE2vsO9FIdNIdA+B5ml6i8s0=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = with lib; {
|
|
description = "Graphical frontend for Hamachi on Linux";
|
|
homepage = "https://haguichi.net/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
};
|
|
}
|