summary refs log tree commit diff
path: root/pkgs/development/libraries/libffcall
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2017-09-11 05:56:52 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2017-09-12 15:08:38 +0200
commite2ddc7ffd2454e596aeea7aec4eb346ef6498d87 (patch)
tree2df4fdead1c44ad178af80dc816ae97022b7d6ce /pkgs/development/libraries/libffcall
parent39e327eeb57b401f37cf5721cfc0e05d3e7832db (diff)
downloadnixpkgs-e2ddc7ffd2454e596aeea7aec4eb346ef6498d87.tar
nixpkgs-e2ddc7ffd2454e596aeea7aec4eb346ef6498d87.tar.gz
nixpkgs-e2ddc7ffd2454e596aeea7aec4eb346ef6498d87.tar.bz2
nixpkgs-e2ddc7ffd2454e596aeea7aec4eb346ef6498d87.tar.lz
nixpkgs-e2ddc7ffd2454e596aeea7aec4eb346ef6498d87.tar.xz
nixpkgs-e2ddc7ffd2454e596aeea7aec4eb346ef6498d87.tar.zst
nixpkgs-e2ddc7ffd2454e596aeea7aec4eb346ef6498d87.zip
libffcall: 1.10 -> 2.0
Thanks to Bruno Haible for a notifying me of this.
Diffstat (limited to 'pkgs/development/libraries/libffcall')
-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;
   };
 }