mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
f30c8b032c
- nixfmt-rfc-style formatting - finalAttrs pattern - no meta-wide with lib - refs/tags rev - meta.changelog - reorder some things
68 lines
1.3 KiB
Nix
68 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 ];
|
|
};
|
|
})
|