depot/third_party/nixpkgs/pkgs/development/libraries/libfilezilla/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
1 KiB
Nix

{ lib, stdenv
, fetchurl
, autoreconfHook
, gettext
, gnutls
, nettle
, pkg-config
, libiconv
, libxcrypt
, ApplicationServices
}:
stdenv.mkDerivation rec {
pname = "libfilezilla";
version = "0.47.0";
src = fetchurl {
url = "https://download.filezilla-project.org/${pname}/${pname}-${version}.tar.xz";
hash = "sha256-YYpYa2E773EKYzxCv92mFmbLsPyKkq1JA2HQvJHFg0E=";
};
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 = "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;
};
}