forked from mirrors/nixpkgs
Merge pull request #133029 from AndersonTorres/new-gftp
gftp: 2.0.19-> 2.7.0b
This commit is contained in:
commit
c7d76493ac
56
pkgs/applications/networking/gftp/default.nix
Normal file
56
pkgs/applications/networking/gftp/default.nix
Normal 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
|
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue