Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
51 lines
908 B
Nix
51 lines
908 B
Nix
{ stdenv, fetchurl
|
|
, glade
|
|
, gnunet
|
|
, gnutls
|
|
, gtk3
|
|
, libextractor
|
|
, libgcrypt
|
|
, libsodium
|
|
, libxml2
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
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
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|