diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libfilezilla')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libfilezilla/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libfilezilla/default.nix b/nixpkgs/pkgs/development/libraries/libfilezilla/default.nix new file mode 100644 index 000000000000..7e90a05fb5b0 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libfilezilla/default.nix @@ -0,0 +1,40 @@ +{ lib, stdenv +, fetchurl +, autoreconfHook +, gettext +, gnutls +, nettle +, pkg-config +, libiconv +, libxcrypt +, ApplicationServices +}: + +stdenv.mkDerivation rec { + pname = "libfilezilla"; + version = "0.46.0"; + + src = fetchurl { + url = "https://download.filezilla-project.org/${pname}/${pname}-${version}.tar.xz"; + hash = "sha256-OHr1xNSENIKl+/GD0B3ZYZtLha+g1olcXuyzpgEvrCE="; + }; + + nativeBuildInputs = [ autoreconfHook pkg-config ]; + + buildInputs = [ gettext gnutls nettle libxcrypt ] + ++ lib.optionals stdenv.isDarwin [ libiconv ApplicationServices ]; + + preBuild = lib.optionalString (stdenv.isDarwin) '' + export MACOSX_DEPLOYMENT_TARGET=11.0 + ''; + + enableParallelBuilding = true; + + meta = with lib; { + homepage = "https://lib.filezilla-project.org/"; + description = "A modern C++ library, offering some basic functionality to build high-performing, platform-independent programs"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ pSub ]; + platforms = lib.platforms.unix; + }; +} |