mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
90c859d0c7
svn path=/nixpkgs/trunk/; revision=22026
29 lines
719 B
Nix
29 lines
719 B
Nix
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
|