Merge pull request #133029 from AndersonTorres/new-gftp

gftp: 2.0.19-> 2.7.0b
This commit is contained in:
Anderson Torres 2021-08-07 16:34:30 -03:00 committed by GitHub
commit c7d76493ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 26 deletions

View file

@ -0,0 +1,56 @@
{ lib
, stdenv
, fetchFromGitHub
, autoconf
, automake
, gettext
, gtk
, intltool
, libtool
, ncurses
, openssl
, pkg-config
, readline
}:
stdenv.mkDerivation rec {
pname = "gftp";
version = "2.7.0b";
src = fetchFromGitHub {
owner = "masneyb";
repo = pname;
rev = version;
hash = "sha256-cIB3SneYKavgdI8eTtM1qsOrBJJ0c7/3CEvNPishNog=";
};
nativeBuildInputs = [
autoconf
automake
gettext
intltool
libtool
pkg-config
];
buildInputs = [
gtk
ncurses
openssl
readline
];
hardeningDisable = [ "format" ];
preConfigure = ''
./autogen.sh
'';
meta = with lib; {
homepage = "https://github.com/masneyb/gftp";
description = "GTK-based multithreaded FTP client for *nix-based machines";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
}
# TODO: report the hardeningDisable to upstream

View file

@ -1,25 +0,0 @@
{ lib, stdenv, fetchurl, gtk2, readline, ncurses, gettext, openssl, pkg-config }:
stdenv.mkDerivation rec {
pname = "gftp";
version = "2.0.19";
src = fetchurl {
url = "https://www.gftp.org/gftp-${version}.tar.bz2";
sha256 = "1z8b26n23k0sjbxgrix646b06cnpndpq7cbcj0ilsvvdx5ms81jk";
};
postPatch = ''
sed -i -e '/<stropts.h>/d' lib/pty.c
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 readline ncurses gettext openssl ];
meta = {
description = "GTK-based FTP client";
homepage = "http://www.gftp.org";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
};
}

View file

@ -5147,7 +5147,9 @@ in
gexiv2 = callPackage ../development/libraries/gexiv2 { };
gftp = callPackage ../tools/networking/gftp { };
gftp = callPackage ../applications/networking/gftp {
gtk = gtk2;
};
gfbgraph = callPackage ../development/libraries/gfbgraph { };