mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
ab391719c2
New SDK is required to support utimens
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, autoreconfHook
|
|
, gettext
|
|
, gnutls
|
|
, nettle
|
|
, pkg-config
|
|
, libiconv
|
|
, libxcrypt
|
|
, ApplicationServices
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libfilezilla";
|
|
version = "0.41.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.filezilla-project.org/${pname}/${pname}-${version}.tar.bz2";
|
|
hash = "sha256-rCodDYKOpgB4fOoefuUNIfDTvZFSzs5hh7ivyQBiKqA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
buildInputs = [ gettext gnutls nettle libxcrypt ]
|
|
++ lib.optionals stdenv.isDarwin [ libiconv ApplicationServices ];
|
|
|
|
preBuild = lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11") ''
|
|
export MACOSX_DEPLOYMENT_TARGET=10.13 # for futimens()
|
|
'';
|
|
|
|
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 = platforms.unix;
|
|
};
|
|
}
|