2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-03-21 11:16:05 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, bison
|
2021-01-17 03:51:22 +00:00
|
|
|
, pkg-config
|
2020-03-21 11:16:05 +00:00
|
|
|
, gettext
|
|
|
|
, desktop-file-utils
|
|
|
|
, glib
|
|
|
|
, gtk2
|
|
|
|
, libxml2
|
|
|
|
, libbfd
|
|
|
|
, zlib
|
|
|
|
, binutils
|
|
|
|
, gnutls
|
|
|
|
, enableGui ? true
|
2019-05-28 12:54:17 +00:00
|
|
|
}:
|
2006-04-18 18:46:36 +00:00
|
|
|
|
2019-05-28 12:54:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtk-gnutella";
|
2021-07-19 07:51:36 +00:00
|
|
|
version = "1.2.1";
|
2011-08-29 20:26:26 +00:00
|
|
|
|
2020-03-21 11:16:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gtk-gnutella";
|
|
|
|
repo = "gtk-gnutella";
|
|
|
|
rev = "v${version}";
|
2021-07-19 07:51:36 +00:00
|
|
|
sha256 = "sha256-Hk5KPXSJ2s0J/stW3Qgvu6p6RG5VCvuWx1UlMR+3JO4=";
|
2011-08-29 20:26:26 +00:00
|
|
|
};
|
|
|
|
|
2020-03-21 11:16:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
2021-01-17 03:51:22 +00:00
|
|
|
pkg-config
|
2019-05-28 12:54:17 +00:00
|
|
|
];
|
2020-03-21 11:16:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gnutls
|
|
|
|
libbfd
|
|
|
|
libxml2
|
|
|
|
zlib
|
|
|
|
]
|
|
|
|
++
|
2021-01-15 09:19:50 +00:00
|
|
|
lib.optionals (enableGui) [ gtk2 ]
|
2020-03-21 11:16:05 +00:00
|
|
|
;
|
2019-05-28 12:54:17 +00:00
|
|
|
|
|
|
|
configureScript = "./build.sh";
|
2020-03-21 11:16:05 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--configure-only"
|
|
|
|
# See https://sourceforge.net/p/gtk-gnutella/bugs/555/
|
|
|
|
"--disable-malloc"
|
|
|
|
]
|
2021-01-15 09:19:50 +00:00
|
|
|
++ lib.optionals (!enableGui) [ "--topless" ]
|
2020-03-21 11:16:05 +00:00
|
|
|
;
|
2011-08-29 20:26:26 +00:00
|
|
|
|
2019-05-28 12:54:17 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm0444 src/${pname}.man $out/share/man/man1/${pname}.1
|
|
|
|
'';
|
2011-08-29 20:26:26 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "A GTK Gnutella client, optimized for speed and scalability";
|
2019-05-28 12:54:17 +00:00
|
|
|
homepage = "http://gtk-gnutella.sourceforge.net/"; # Code: https://github.com/gtk-gnutella/gtk-gnutella
|
|
|
|
changelog = "https://raw.githubusercontent.com/gtk-gnutella/gtk-gnutella/v${version}/ChangeLog";
|
2020-03-21 11:16:05 +00:00
|
|
|
maintainers = [ maintainers.doronbehar ];
|
2019-05-28 12:54:17 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.unix;
|
2006-04-18 18:46:36 +00:00
|
|
|
};
|
|
|
|
}
|