Merge pull request #7529 from joachifm/trivial-builderDefs

Some trivial builderDefs->mkDerivation translations
This commit is contained in:
Pascal Wittmann
2015-04-25 11:32:12 +02:00
5 changed files with 64 additions and 135 deletions

View File

@@ -1,38 +1,28 @@
a :
let
fetchurl = a.fetchurl;
{ stdenv, fetchcvs }:
version = a.lib.attrByPath ["version"] "2009-05-27" a;
buildInputs = with a; [
];
in
rec {
src = a.fetchcvs {
stdenv.mkDerivation rec {
name = "libffcall-${version}";
version = "2009-05-27";
src = fetchcvs {
cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall";
module = "ffcall";
date = version;
sha256 = "91bcb5a20c85a9ccab45886aae8fdbbcf1f20f995ef898e8bdd2964448daf724";
sha256 = "097pv94495njppl9iy2yk47z5wdwvf7swsl88nmwrac51jibbg4i";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
doConfigure = a.fullDepEntry (''
configurePhase = ''
for i in ./configure */configure; do
cwd="$PWD"
cd "$(dirname "$i")";
cd "$(dirname "$i")";
( test -f Makefile && make distclean ) || true
./configure --prefix=$out
cd "$cwd"
done
'') a.doConfigure.deps;
'';
name = "libffcall-" + version;
meta = {
description = "Foreign function call library";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
};
}