Add Gambit Scheme compiler
svn path=/nixpkgs/trunk/; revision=22026
This commit is contained in:
parent
1975b1e1af
commit
90c859d0c7
28
pkgs/development/compilers/gambit/default.nix
Normal file
28
pkgs/development/compilers/gambit/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
x@{stdenv, fetchurl, builderDefsPackage, ...}:
|
||||||
|
builderDefsPackage
|
||||||
|
(a :
|
||||||
|
let
|
||||||
|
s = import ./src-for-default.nix;
|
||||||
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ [];
|
||||||
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = a.fetchUrlFromSrcInfo s;
|
||||||
|
|
||||||
|
inherit (s) name;
|
||||||
|
inherit buildInputs;
|
||||||
|
configureFlags = ["--enable-shared"];
|
||||||
|
|
||||||
|
/* doConfigure should be removed if not needed */
|
||||||
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Gambit Scheme to C compiler";
|
||||||
|
maintainers = [
|
||||||
|
a.lib.maintainers.raskin
|
||||||
|
];
|
||||||
|
platforms = with a.lib.platforms;
|
||||||
|
linux ++ freebsd;
|
||||||
|
};
|
||||||
|
}) x
|
9
pkgs/development/compilers/gambit/src-for-default.nix
Normal file
9
pkgs/development/compilers/gambit/src-for-default.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
rec {
|
||||||
|
version="v4_6_0";
|
||||||
|
name="gambit-v4_6_0";
|
||||||
|
hash="1hnczygq25r6hi1l6lh1sd4g382j2z0ji5bdd01lhr4i07dcvipd";
|
||||||
|
url="http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-${version}-devel.tgz";
|
||||||
|
advertisedUrl="http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_0-devel.tgz";
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
downloadPage = "http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page";
|
||||||
|
baseName = "gambit";
|
||||||
|
sourceRegexp = "[.]tgz";
|
||||||
|
versionExtractorSedScript = ''s/.*-(v[_0-9]+)-devel[.].*/\1/'';
|
||||||
|
versionReferenceCreator = ''$(replaceAllVersionOccurences)'';
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user