about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2019-11-29 17:25:48 -0500
committerRenaud <c0bw3b@users.noreply.github.com>2019-11-29 23:25:48 +0100
commitc9824f01735e21df61e77e53d6a62d2713667f67 (patch)
treee440f598882f1c985ceb0ce7755686112d6ee5b2
parent71e097936beff205adbe51b92d10f411a0868586 (diff)
downloadnixlib-c9824f01735e21df61e77e53d6a62d2713667f67.tar
nixlib-c9824f01735e21df61e77e53d6a62d2713667f67.tar.gz
nixlib-c9824f01735e21df61e77e53d6a62d2713667f67.tar.bz2
nixlib-c9824f01735e21df61e77e53d6a62d2713667f67.tar.lz
nixlib-c9824f01735e21df61e77e53d6a62d2713667f67.tar.xz
nixlib-c9824f01735e21df61e77e53d6a62d2713667f67.tar.zst
nixlib-c9824f01735e21df61e77e53d6a62d2713667f67.zip
libcerf: 1.5 -> 1.13 (#69218)
Upstream has moved the src tarball download location and homepage for `libcerf`,
so the current package is broken. While fixing it, let's upgrade to the latest
version, which is built with cmake now.

Co-Authored-By: Jon <jonringer@users.noreply.github.com>
-rw-r--r--pkgs/development/libraries/libcerf/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/libraries/libcerf/default.nix b/pkgs/development/libraries/libcerf/default.nix
index fd5ee8dcaaf9..0ffb20859677 100644
--- a/pkgs/development/libraries/libcerf/default.nix
+++ b/pkgs/development/libraries/libcerf/default.nix
@@ -1,16 +1,19 @@
-{ stdenv, lib, fetchurl }:
+{ stdenv, lib, fetchurl, cmake, perl }:
 
-stdenv.mkDerivation {
-  name = "libcerf-1.5";
+stdenv.mkDerivation rec {
+  pname = "libcerf";
+  version = "1.13";
 
   src = fetchurl {
-    url = "http://apps.jcns.fz-juelich.de/src/libcerf/libcerf-1.5.tgz";
-    sha256 = "11jwr8ql4a9kmv04ycgwk4dsqnlv4l65a8aa0x1i3y7zwx3w2vg3";
+    url = "https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v${version}/libcerf-v${version}.tar.gz";
+    sha256 = "01d3fr4qa0080xdgp66mjbsa884qivn9y83p7rdyz2l3my0rysg4";
   };
 
+  nativeBuildInputs = [ cmake perl ];
+
   meta = with lib; {
     description = "Complex error (erf), Dawson, Faddeeva, and Voigt function library";
-    homepage = http://apps.jcns.fz-juelich.de/doku/sc/libcerf;
+    homepage = https://jugit.fz-juelich.de/mlz/libcerf;
     license = licenses.mit;
     maintainers = with maintainers; [ orivej ];
     platforms = platforms.all;