Something went wrong. Try again.
lol
Something went wrong. Try again.
939 B · 56 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ stdenv, lib, ruby, callPackage, ...}:let mkDerivation = { name, ... }@argSet: derivation { inherit name; text = ( builtins.toJSON ( lib.filterAttrs ( n: v: builtins.elem n [ "name" "system" ] ) argSet ) ); builder = stdenv.shell; args = [ "-c" "echo $(<$textPath) > $out" ]; system = stdenv.hostPlatform.system; passAsFile = [ "text" ]; }; fetchurl = { url ? "", urls ? [ ], ... }: "fetchurl:${if urls == [ ] then url else builtins.head urls}";
stdenv' = stdenv // { inherit mkDerivation; stubbed = true; }; ruby' = ruby // { stdenv = stdenv'; stubbed = true; };in{ ruby = ruby'; buildRubyGem = callPackage ../gem { inherit fetchurl; ruby = ruby'; }; stdenv = stdenv';}