@@ -1,38 +1,28 @@
1−a :
2−let
3− fetchurl = a.fetchurl;
1+{ stdenv, fetchcvs }:
42
5− version = a.lib.attrByPath ["version"] "2009-05-27" a;
6− buildInputs = with a; [
7−
8− ];
9−in
10−rec {
11− src = a.fetchcvs {
3+stdenv.mkDerivation rec {
4+ name = "libffcall-${version}";
5+ version = "2009-05-27";
6+ src = fetchcvs {
127 cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall";
138 module = "ffcall";
149 date = version;
15− sha256 = "91bcb5a20c85a9ccab45886aae8fdbbcf1f20f995ef898e8bdd2964448daf724";
10+ sha256 = "097pv94495njppl9iy2yk47z5wdwvf7swsl88nmwrac51jibbg4i";
1611 };
1712
18− inherit buildInputs;
19− configureFlags = [];
20−
21− /* doConfigure should be removed if not needed */
22− phaseNames = ["doConfigure" "doMakeInstall"];
23−
24− doConfigure = a.fullDepEntry (''
13+ configurePhase = ''
2514 for i in ./configure */configure; do
2615 cwd="$PWD"
27− cd "$(dirname "$i")";
16+ cd "$(dirname "$i")";
2817 ( test -f Makefile && make distclean ) || true
2918 ./configure --prefix=$out
3019 cd "$cwd"
3120 done
32− '') a.doConfigure.deps;
21+ '';
3322
34− name = "libffcall-" + version;
3523 meta = {
3624 description = "Foreign function call library";
25+ license = stdenv.lib.licenses.gpl2;
26+ platforms = stdenv.lib.platforms.unix;
3727 };
3828}