nixpkgs/pkgs/applications/networking/p2p/gnunet/gtk.nix
2024-03-26 03:34:14 +01:00

52 lines
906 B
Nix

{ stdenv, fetchurl
, glade
, gnunet
, gnutls
, gtk3
, libextractor
, libgcrypt
, libsodium
, libxml2
, pkg-config
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "gnunet-gtk";
version = "0.21.0";
src = fetchurl {
url = "mirror://gnu/gnunet/gnunet-gtk-${version}.tar.gz";
hash = "sha256-vQFtKFI57YG64WpKVngx1kq687hI+f1kpP9ooK53/aw=";
};
nativeBuildInputs= [
pkg-config
wrapGAppsHook
];
buildInputs = [
glade
gnunet
gnutls
gtk3
libextractor
libgcrypt
libsodium
libxml2
];
configureFlags = [ "--with-gnunet=${gnunet}" ];
postPatch = "patchShebangs pixmaps/icon-theme-installer";
postInstall = ''
ln -s $out/share/gnunet-gtk/gnunet_logo.png $out/share/gnunet/gnunet-logo-color.png
'';
meta = gnunet.meta // {
description = "GNUnet GTK User Interface";
homepage = "https://git.gnunet.org/gnunet-gtk.git";
};
}