nixpkgs/pkgs/development/interpreters/ruby/libs.nix
Yury G. Kudryashov 08abc174f6 Move various functions to separate files.
Also allow overwriting the 'generated' file.

svn path=/nixpkgs/trunk/; revision=25656
2011-01-21 08:25:02 +00:00

13 lines
417 B
Nix

{stdenv, config, fetchurl, callPackage}:
let
generated = stdenv.lib.attrByPath [ "gems" "generated" ] (import ./generated.nix) config;
auto = generated merged;
patches = callPackage ./patches.nix { } gems;
overwrites = callPackage ./overwrites.nix { } gems;
merged = stdenv.lib.mapAttrs gem auto.gems;
gem = callPackage ./gem.nix { inherit patches overwrites; };
gems = merged // auto.aliases;
in
gems