summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/libraries/libffcall/default.nix32
1 files changed, 15 insertions, 17 deletions
diff --git a/pkgs/development/libraries/libffcall/default.nix b/pkgs/development/libraries/libffcall/default.nix
index 9639f4008f5..c6482842cac 100644
--- a/pkgs/development/libraries/libffcall/default.nix
+++ b/pkgs/development/libraries/libffcall/default.nix
@@ -2,29 +2,27 @@
 
 stdenv.mkDerivation rec {
   name = "libffcall-${version}";
-  version = "1.10";
+  version = "2.0";
 
   src = fetchurl {
-    urls = [
-      # Europe
-      "http://www.haible.de/bruno/gnu/ffcall-${version}.tar.gz"
-      # USA
-      "ftp://ftp.santafe.edu/pub/gnu/ffcall-${version}.tar.gz"
-    ];
-    sha256 = "0gcqljx4f8wrq59y13zzigwzaxdrz3jf9cbzcd8h0b2br27mn6vg";
+    url = "mirror://gnu/libffcall/libffcall-${version}.tar.gz";
+    sha256 = "0v0rh3vawb8z5q40fs3kr2f9zp06n2fq4rr2ww4562nr96sd5aj1";
   };
 
-  NIX_CFLAGS_COMPILE = "-Wa,--noexecstack";
+  enableParallelBuilding = false;
 
-  configureFlags = [
-    "--enable-shared"
-    "--disable-static"
-  ];
+  outputs = [ "dev" "out" "doc" "man" ];
 
-  meta = {
+  postInstall = ''
+    mkdir -p $doc/share/doc/libffcall
+    mv $out/share/html $doc/share/doc/libffcall
+    rm -rf $out/share
+  '';
+
+  meta = with stdenv.lib; {
     description = "Foreign function call library";
-    homepage = https://www.haible.de/bruno/packages-ffcall.html;
-    license = stdenv.lib.licenses.gpl2;
-    platforms = stdenv.lib.platforms.unix;
+    homepage = https://www.gnu.org/software/libffcall/;
+    license = licenses.gpl2Plus;
+    platforms = platforms.unix;
   };
 }