1{ stdenv, lib, ruby, callPackage, ... }:
2let
3 mkDerivation = {name, ...}@argSet:
4 derivation {
5 inherit name;
6 text = (builtins.toJSON (lib.filterAttrs ( n: v: builtins.any (x: x == n) ["name" "system"]) argSet));
7 builder = stdenv.shell;
8 args = [ "-c" "echo $(<$textPath) > $out"];
9 system = stdenv.hostPlatform.system;
10 passAsFile = ["text"];
11 };
12 fetchurl = {url?"", urls ? [],...}: "fetchurl:${if urls == [] then url else builtins.head urls}";
13
14 stdenv' = stdenv // {
15 inherit mkDerivation;
16 stubbed = true;
17 };
18 ruby' = ruby // {
19 stdenv = stdenv';
20 stubbed = true;
21 };
22in
23 {
24 ruby = ruby';
25 buildRubyGem = callPackage ../gem {
26 inherit fetchurl;
27 ruby = ruby';
28 };
29 stdenv = stdenv';
30 }