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