From e2ddc7ffd2454e596aeea7aec4eb346ef6498d87 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Mon, 11 Sep 2017 05:56:52 +0200 Subject: libffcall: 1.10 -> 2.0 Thanks to Bruno Haible for a notifying me of this. --- pkgs/development/libraries/libffcall/default.nix | 32 +++++++++++------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'pkgs/development/libraries/libffcall') 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; }; } -- cgit 1.4.1