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