libffcall: port to mkDerivation
Also set meta.{license,platforms} (the latter is guesswork).
This commit is contained in:
parent
5fade2b6aa
commit
fd9c13956f
@ -1,38 +1,28 @@
|
|||||||
a :
|
{ stdenv, fetchcvs }:
|
||||||
let
|
|
||||||
fetchurl = a.fetchurl;
|
|
||||||
|
|
||||||
version = a.lib.attrByPath ["version"] "2009-05-27" a;
|
stdenv.mkDerivation rec {
|
||||||
buildInputs = with a; [
|
name = "libffcall-${version}";
|
||||||
|
version = "2009-05-27";
|
||||||
];
|
src = fetchcvs {
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchcvs {
|
|
||||||
cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall";
|
cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall";
|
||||||
module = "ffcall";
|
module = "ffcall";
|
||||||
date = version;
|
date = version;
|
||||||
sha256 = "91bcb5a20c85a9ccab45886aae8fdbbcf1f20f995ef898e8bdd2964448daf724";
|
sha256 = "097pv94495njppl9iy2yk47z5wdwvf7swsl88nmwrac51jibbg4i";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit buildInputs;
|
configurePhase = ''
|
||||||
configureFlags = [];
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
doConfigure = a.fullDepEntry (''
|
|
||||||
for i in ./configure */configure; do
|
for i in ./configure */configure; do
|
||||||
cwd="$PWD"
|
cwd="$PWD"
|
||||||
cd "$(dirname "$i")";
|
cd "$(dirname "$i")";
|
||||||
( test -f Makefile && make distclean ) || true
|
( test -f Makefile && make distclean ) || true
|
||||||
./configure --prefix=$out
|
./configure --prefix=$out
|
||||||
cd "$cwd"
|
cd "$cwd"
|
||||||
done
|
done
|
||||||
'') a.doConfigure.deps;
|
'';
|
||||||
|
|
||||||
name = "libffcall-" + version;
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Foreign function call library";
|
description = "Foreign function call library";
|
||||||
|
license = stdenv.lib.licenses.gpl2;
|
||||||
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6476,9 +6476,7 @@ let
|
|||||||
|
|
||||||
libfixposix = callPackage ../development/libraries/libfixposix {};
|
libfixposix = callPackage ../development/libraries/libfixposix {};
|
||||||
|
|
||||||
libffcall = builderDefsPackage (import ../development/libraries/libffcall) {
|
libffcall = callPackage ../development/libraries/libffcall { };
|
||||||
inherit fetchcvs;
|
|
||||||
};
|
|
||||||
|
|
||||||
libffi = callPackage ../development/libraries/libffi { };
|
libffi = callPackage ../development/libraries/libffi { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user