nixpkgs/pkgs/development/libraries/libffcall/default.nix
Joachim Fasting 0028abeb4e
libffcall: 2009-05-27 -> 1.10
Use the release tarball provided by the clisp maintainer.

Tested build by nix-build -A clisp -A clisp_2_44_1 -A gtk-server;
only clisp run-tested.

Of particular note is that the .so files no longer have executable
stacks.  This also avoids executable stack in clisp lisp.run

Before:

   $ readelf -lW $(nix-build -A clisp)/lib/clisp-2.49/base/lisp.run|grep GNU_STACK
   GNU_STACK      [...] RWE 0x10

After:

   $ readelf -lW $(nix-build -A clisp)/lib/clisp-2.49/base/lisp.run|grep GNU_STACK
   GNU_STACK      [...] RW 0x10
2016-11-30 06:01:10 +01:00

31 lines
704 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libffcall-${version}";
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";
};
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;
};
}