diff --git a/pkgs/tools/networking/davix/default.nix b/pkgs/tools/networking/davix/default.nix index 3be2b0401bc4..74aa30bb95e0 100644 --- a/pkgs/tools/networking/davix/default.nix +++ b/pkgs/tools/networking/davix/default.nix @@ -1,22 +1,24 @@ -{ stdenv, fetchFromGitHub, cmake, pkgconfig, openssl, libxml2, boost }: +{ stdenv, fetchurl, cmake, pkgconfig, openssl, libxml2, boost, python3, libuuid }: stdenv.mkDerivation rec { - name = "davix-0.6.4"; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ stdenv cmake openssl libxml2 boost ]; + version = "0.7.2"; + name = "davix-${version}"; + nativeBuildInputs = [ cmake pkgconfig python3 ]; + buildInputs = [ openssl libxml2 boost libuuid ]; - src = fetchFromGitHub { - owner = "cern-it-sdc-id"; - repo = "davix"; - rev = "R_0_6_4"; - sha256 = "10hg7rs6aams96d4ghldgkrrnikskdpmn8vy6hj5j0s17a2yms6q"; + # using the url below since the 0.7.2 release did carry a broken CMake file, + # supposedly fixed in the next release + # https://github.com/cern-fts/davix/issues/40 + src = fetchurl { + url = "http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/davix/${version}/davix-${version}.tar.gz"; + sha256 = "1w1q7r6r5j5f23ra4qhx3x29w9z9xal23c2azazpfmcz88hkkmhz"; }; meta = with stdenv.lib; { description = "Toolkit for Http-based file management"; - longDescription = "Davix is a toolkit designed for file + longDescription = "Davix is a toolkit designed for file operations with Http based protocols (WebDav, Amazon S3, ...). Davix provides an API and a set of command line tools"; @@ -24,6 +26,6 @@ stdenv.mkDerivation rec { homepage = http://dmc.web.cern.ch/projects/davix/home; maintainers = [ maintainers.adev ]; platforms = platforms.all; - }; + }; }