forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
71 lines
1.5 KiB
Nix
71 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, autoreconfHook
|
|
, dbus
|
|
, gettext
|
|
, gnutls
|
|
, libfilezilla
|
|
, libidn
|
|
, nettle
|
|
, pkgconfig
|
|
, pugixml
|
|
, sqlite
|
|
, tinyxml
|
|
, wxGTK30-gtk3
|
|
, xdg_utils
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "filezilla";
|
|
version = "3.51.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.filezilla-project.org/client/FileZilla_${version}_src.tar.bz2";
|
|
sha256 = "0k3c7gm16snc6dr9a3xgq14ajyqj4hxcrd6hk6jk5fsi9x51rgl2";
|
|
};
|
|
|
|
# https://www.linuxquestions.org/questions/slackware-14/trouble-building-filezilla-3-47-2-1-current-4175671182/#post6099769
|
|
postPatch = ''
|
|
sed -i src/interface/Mainfrm.h \
|
|
-e '/^#define/a #include <list>'
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--disable-manualupdatecheck"
|
|
"--disable-autoupdatecheck"
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
gettext
|
|
gnutls
|
|
libfilezilla
|
|
libidn
|
|
nettle
|
|
pugixml
|
|
sqlite
|
|
tinyxml
|
|
wxGTK30-gtk3
|
|
wxGTK30-gtk3.gtk
|
|
xdg_utils
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://filezilla-project.org/";
|
|
description = "Graphical FTP, FTPS and SFTP client";
|
|
longDescription = ''
|
|
FileZilla Client is a free, open source FTP client. It supports
|
|
FTP, SFTP, and FTPS (FTP over SSL/TLS). The client is available
|
|
under many platforms, binaries for Windows, Linux and macOS are
|
|
provided.
|
|
'';
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|