call patches with the right nix
This commit is contained in:
parent
f14f73da76
commit
05238cd353
@ -21,7 +21,7 @@ self = rec {
|
|||||||
# import an attrset full of gems, then override badly behaved ones
|
# import an attrset full of gems, then override badly behaved ones
|
||||||
importGems = file: args:
|
importGems = file: args:
|
||||||
let
|
let
|
||||||
patches = callPackage ./patches.nix { gems = builtGems; };
|
patches = callPackage ./patches.nix { inherit ruby; gems = builtGems; };
|
||||||
preBuilt = callPackage file ({ inherit buildRubyGem; self = builtGems; } // args);
|
preBuilt = callPackage file ({ inherit buildRubyGem; self = builtGems; } // args);
|
||||||
builtGems = self // (lib.mapAttrs (gem: deriv:
|
builtGems = self // (lib.mapAttrs (gem: deriv:
|
||||||
if patches ? "${gem}"
|
if patches ? "${gem}"
|
||||||
@ -60,6 +60,11 @@ self = rec {
|
|||||||
doCheck = false; # check depends on rspec!
|
doCheck = false; # check depends on rspec!
|
||||||
};
|
};
|
||||||
|
|
||||||
|
json = buildRubyGem {
|
||||||
|
name = "json-1.8.1";
|
||||||
|
sha256 = "0002bsycvizvkmk1jyv8px1hskk6wrjfk4f7x5byi8gxm6zzn6wn";
|
||||||
|
};
|
||||||
|
|
||||||
rspec = rspec_3_0;
|
rspec = rspec_3_0;
|
||||||
|
|
||||||
rspec_3_0 = buildRubyGem {
|
rspec_3_0 = buildRubyGem {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user