at v192 28 lines 698 B view raw
1{ stdenv, fetchcvs }: 2 3stdenv.mkDerivation rec { 4 name = "libffcall-${version}"; 5 version = "2009-05-27"; 6 src = fetchcvs { 7 cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall"; 8 module = "ffcall"; 9 date = version; 10 sha256 = "097pv94495njppl9iy2yk47z5wdwvf7swsl88nmwrac51jibbg4i"; 11 }; 12 13 configurePhase = '' 14 for i in ./configure */configure; do 15 cwd="$PWD" 16 cd "$(dirname "$i")"; 17 ( test -f Makefile && make distclean ) || true 18 ./configure --prefix=$out 19 cd "$cwd" 20 done 21 ''; 22 23 meta = { 24 description = "Foreign function call library"; 25 license = stdenv.lib.licenses.gpl2; 26 platforms = stdenv.lib.platforms.unix; 27 }; 28}