diff options
author | Christian Lütke-Stetzkamp <christian@lkamp.de> | 2021-03-06 21:47:30 +0100 |
---|---|---|
committer | Christian Lütke-Stetzkamp <christian@lkamp.de> | 2021-03-07 15:29:44 +0100 |
commit | 060efbe394e1633b8ff6e7aaf23a06cfdc53df1c (patch) | |
tree | 021b79525840f1a1629e479a03b30aef7dec688b | |
parent | 560ee846ac5713725bdc8ae15bfa50e275498d0e (diff) |
cadaver: Fix building with current openssl
...by using the already-packaged (newer) version of neon as it is also done for openSUSE[1]. [1] https://build.opensuse.org/package/show/openSUSE:Factory/cadaver
-rw-r--r-- | pkgs/tools/networking/cadaver/configure.patch | 20 | ||||
-rw-r--r-- | pkgs/tools/networking/cadaver/default.nix | 8 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
3 files changed, 27 insertions, 5 deletions
diff --git a/pkgs/tools/networking/cadaver/configure.patch b/pkgs/tools/networking/cadaver/configure.patch new file mode 100644 index 0000000000000..b618099b371a9 --- /dev/null +++ b/pkgs/tools/networking/cadaver/configure.patch @@ -0,0 +1,20 @@ +--- a/configure.orig ++++ b/configure +@@ -9595,7 +9595,7 @@ fi + $as_echo "$ne_cv_lib_neon" >&6; } + if test "$ne_cv_lib_neon" = "yes"; then + ne_cv_lib_neonver=no +- for v in 27 28 29; do ++ for v in 27 28 29 30 31; do + case $ne_libver in + 0.$v.*) ne_cv_lib_neonver=yes ;; + esac +@@ -10328,7 +10328,7 @@ fi + $as_echo "$ne_cv_lib_neon" >&6; } + if test "$ne_cv_lib_neon" = "yes"; then + ne_cv_lib_neonver=no +- for v in 27 28 29; do ++ for v in 27 28 29 30 31; do + case $ne_libver in + 0.$v.*) ne_cv_lib_neonver=yes ;; + esac diff --git a/pkgs/tools/networking/cadaver/default.nix b/pkgs/tools/networking/cadaver/default.nix index 84265d3f4b7e7..70c7972bd65f8 100644 --- a/pkgs/tools/networking/cadaver/default.nix +++ b/pkgs/tools/networking/cadaver/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch, openssl, readline }: +{ lib, stdenv, fetchurl, fetchpatch, neon, pkg-config, readline, zlib}: stdenv.mkDerivation rec { name = "cadaver-0.23.3"; @@ -14,11 +14,15 @@ stdenv.mkDerivation rec { name = "disable-sslv2.patch"; sha256 = "1qx65hv584wdarks51yhd3y38g54affkphm5wz27xiz4nhmbssrr"; }) + # Cadaver also works with newer versions of neon than stated + # in the configure script + ./configure.patch ]; configureFlags = [ "--with-ssl" "--with-readline" ]; - buildInputs = [ openssl readline ]; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ neon readline zlib ]; meta = with lib; { description = "A command-line WebDAV client"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b726c4f87baa4..8b8693f450bb6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3116,9 +3116,7 @@ in cabextract = callPackage ../tools/archivers/cabextract { }; - cadaver = callPackage ../tools/networking/cadaver { - openssl = openssl_1_0_2; - }; + cadaver = callPackage ../tools/networking/cadaver { }; davix = callPackage ../tools/networking/davix { }; |