2023-09-21 08:31:17 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
2020-03-21 11:16:05 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
bison,
|
|
|
|
desktop-file-utils,
|
2023-09-21 08:31:17 +00:00
|
|
|
gettext,
|
|
|
|
pkg-config,
|
2020-03-21 11:16:05 +00:00
|
|
|
glib,
|
|
|
|
gtk2,
|
|
|
|
libxml2,
|
|
|
|
libbfd,
|
|
|
|
zlib,
|
|
|
|
gnutls,
|
|
|
|
enableGui ? true,
|
2019-05-28 12:54:17 +00:00
|
|
|
}:
|
2006-04-18 18:46:36 +00:00
|
|
|
|
2023-09-21 08:31:17 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-05-28 12:54:17 +00:00
|
|
|
pname = "gtk-gnutella";
|
2022-03-01 11:50:56 +00:00
|
|
|
version = "1.2.2";
|
2011-08-29 20:26:26 +00:00
|
|
|
|
2020-03-21 11:16:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gtk-gnutella";
|
|
|
|
repo = "gtk-gnutella";
|
2023-09-21 08:31:17 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2022-03-01 11:50:56 +00:00
|
|
|
sha256 = "sha256-LbSUdU+a9G8qL7gCZVJQ6UQMATpOMtktY6FeOkUuaYI=";
|
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
|
2023-09-21 08:31:17 +00:00
|
|
|
]
|
|
|
|
++ lib.optionals enableGui [
|
|
|
|
gtk2
|
|
|
|
];
|
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"
|
2023-09-21 08:31:17 +00:00
|
|
|
]
|
|
|
|
++ lib.optionals (!enableGui) [
|
|
|
|
"--topless"
|
|
|
|
];
|
2011-08-29 20:26:26 +00:00
|
|
|
|
2019-05-28 12:54:17 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
2023-09-21 08:31:17 +00:00
|
|
|
install -Dm0444 src/gtk-gnutella.man $out/share/man/man1/gtk-gnutella.1
|
2019-05-28 12:54:17 +00:00
|
|
|
'';
|
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 = "GTK Gnutella client, optimized for speed and scalability";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gtk-gnutella";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://gtk-gnutella.sourceforge.net/"; # Code: https://github.com/gtk-gnutella/gtk-gnutella
|
2024-04-20 22:31:52 +00:00
|
|
|
changelog = "https://raw.githubusercontent.com/gtk-gnutella/gtk-gnutella/v${finalAttrs.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
|
|
|
};
|
2023-09-21 08:31:17 +00:00
|
|
|
})
|