2015-04-16 18:04:06 +02:00
|
|
|
{ stdenv, fetchcvs }:
|
2009-05-31 08:07:25 +02:00
|
|
|
|
2015-04-16 18:04:06 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libffcall-${version}";
|
|
|
|
version = "2009-05-27";
|
|
|
|
src = fetchcvs {
|
2009-05-31 08:07:25 +02:00
|
|
|
cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall";
|
|
|
|
module = "ffcall";
|
|
|
|
date = version;
|
2015-04-16 18:04:06 +02:00
|
|
|
sha256 = "097pv94495njppl9iy2yk47z5wdwvf7swsl88nmwrac51jibbg4i";
|
2009-05-31 08:07:25 +02:00
|
|
|
};
|
|
|
|
|
2015-04-16 18:04:06 +02:00
|
|
|
configurePhase = ''
|
2009-05-31 08:07:25 +02:00
|
|
|
for i in ./configure */configure; do
|
|
|
|
cwd="$PWD"
|
2015-04-16 18:04:06 +02:00
|
|
|
cd "$(dirname "$i")";
|
2009-05-31 08:07:25 +02:00
|
|
|
( test -f Makefile && make distclean ) || true
|
|
|
|
./configure --prefix=$out
|
|
|
|
cd "$cwd"
|
|
|
|
done
|
2015-04-16 18:04:06 +02:00
|
|
|
'';
|
2009-05-31 08:07:25 +02:00
|
|
|
|
|
|
|
meta = {
|
2012-02-15 17:30:46 +01:00
|
|
|
description = "Foreign function call library";
|
2015-04-16 18:04:06 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-05-31 08:07:25 +02:00
|
|
|
};
|
|
|
|
}
|