2021-03-06 20:47:30 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, neon, pkg-config, readline, zlib}:
|
2014-07-30 15:55:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-01 21:48:53 +01:00
|
|
|
pname = "cadaver";
|
|
|
|
version = "0.23.3";
|
2014-07-30 15:55:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-01 21:48:53 +01:00
|
|
|
url = "http://www.webdav.org/cadaver/cadaver-${version}.tar.gz";
|
2014-07-30 15:55:44 +01:00
|
|
|
sha256 = "1jizq69ifrjbjvz5y79wh1ny94gsdby4gdxwjad4bfih6a5fck7x";
|
|
|
|
};
|
|
|
|
|
2016-03-24 18:02:02 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://projects.archlinux.org/svntogit/community.git/plain/trunk/disable-sslv2.patch?h=packages/cadaver";
|
2016-03-24 18:02:02 +00:00
|
|
|
name = "disable-sslv2.patch";
|
|
|
|
sha256 = "1qx65hv584wdarks51yhd3y38g54affkphm5wz27xiz4nhmbssrr";
|
|
|
|
})
|
2021-03-06 20:47:30 +00:00
|
|
|
# Cadaver also works with newer versions of neon than stated
|
|
|
|
# in the configure script
|
|
|
|
./configure.patch
|
2016-03-24 18:02:02 +00:00
|
|
|
];
|
|
|
|
|
2019-11-07 01:29:17 +00:00
|
|
|
configureFlags = [ "--with-ssl" "--with-readline" ];
|
2016-03-24 18:02:02 +00:00
|
|
|
|
2021-03-06 20:47:30 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ neon readline zlib ];
|
2014-10-18 18:47:37 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-03-24 18:02:02 +00:00
|
|
|
description = "A command-line WebDAV client";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.webdav.org/cadaver";
|
2014-07-30 15:55:44 +01:00
|
|
|
maintainers = with maintainers; [ ianwookim ];
|
2014-07-31 12:51:31 +01:00
|
|
|
license = licenses.gpl2;
|
2014-08-09 11:13:44 +01:00
|
|
|
platforms = with platforms; linux ++ freebsd ++ openbsd;
|
2014-07-30 15:55:44 +01:00
|
|
|
};
|
|
|
|
}
|