diff --git a/pkgs/development/libraries/libffcall/default.nix b/pkgs/development/libraries/libffcall/default.nix index 530b04e8b42..47814ef2f25 100644 --- a/pkgs/development/libraries/libffcall/default.nix +++ b/pkgs/development/libraries/libffcall/default.nix @@ -1,27 +1,29 @@ -{ stdenv, fetchcvs }: +{ stdenv, fetchurl }: stdenv.mkDerivation rec { name = "libffcall-${version}"; - version = "2009-05-27"; - src = fetchcvs { - cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall"; - module = "ffcall"; - date = version; - sha256 = "097pv94495njppl9iy2yk47z5wdwvf7swsl88nmwrac51jibbg4i"; + version = "1.10"; + + 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"; }; - configurePhase = '' - for i in ./configure */configure; do - cwd="$PWD" - cd "$(dirname "$i")"; - ( test -f Makefile && make distclean ) || true - ./configure --prefix=$out - cd "$cwd" - done - ''; + NIX_CFLAGS_COMPILE = "-Wa,--noexecstack"; + + configureFlags = [ + "--enable-shared" + "--disable-static" + ]; meta = { description = "Foreign function call library"; + homepage = http://www.haible.de/bruno/packages-ffcall.html; license = stdenv.lib.licenses.gpl2; platforms = stdenv.lib.platforms.unix; };