diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-05-28 06:01:35 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-05-28 06:01:35 +0000 |
commit | 90c859d0c7d43cf6089711ccb57730c915395bca (patch) | |
tree | bd7018baf715dcebc94cb362906dbadfc9ca8181 /pkgs/development/compilers/gambit | |
parent | 1975b1e1af0db3acbd528bc39743a2f8edf4a84d (diff) |
Add Gambit Scheme compiler
svn path=/nixpkgs/trunk/; revision=22026
Diffstat (limited to 'pkgs/development/compilers/gambit')
-rw-r--r-- | pkgs/development/compilers/gambit/default.nix | 28 | ||||
-rw-r--r-- | pkgs/development/compilers/gambit/src-for-default.nix | 9 | ||||
-rw-r--r-- | pkgs/development/compilers/gambit/src-info-for-default.nix | 7 |
3 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gambit/default.nix b/pkgs/development/compilers/gambit/default.nix new file mode 100644 index 0000000000000..265b08c1fbdf6 --- /dev/null +++ b/pkgs/development/compilers/gambit/default.nix @@ -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 diff --git a/pkgs/development/compilers/gambit/src-for-default.nix b/pkgs/development/compilers/gambit/src-for-default.nix new file mode 100644 index 0000000000000..6ea9d6bd2fcb8 --- /dev/null +++ b/pkgs/development/compilers/gambit/src-for-default.nix @@ -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"; + + +} diff --git a/pkgs/development/compilers/gambit/src-info-for-default.nix b/pkgs/development/compilers/gambit/src-info-for-default.nix new file mode 100644 index 0000000000000..cd32f9d3f821b --- /dev/null +++ b/pkgs/development/compilers/gambit/src-info-for-default.nix @@ -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)''; +} |