git.iko.soy/typeable/nixpkgs
on master help sign in
buildRubyGem: Make testing easier

Don't default `doCheck` to false, and use the default set of phases so the phases list does not need to be overriden in order to add checkPhase or installCheckPhase.

commitfced35fa44098be0296d8b42166583bd5e505141 authorAneesh Agrawal <aneeshusa@gmail.com> dateSat 3 Mar 2018, 23:24 (9 years ago) parent1aa59bf
1 file changed−4
pkgs/development/ruby-modules/gem/default.nix−4
pkgs/development/ruby-modules/gem/default.nix−4
@@ -36,7 +36,6 @@ lib.makeOverridable (
3636 rubyName = builtins.parseDrvName ruby.name;
3737 in "${rubyName.name}${rubyName.version}-")
3838, buildInputs ? []
39−, doCheck ? false
4039, meta ? {}
4140, patches ? []
4241, gemPath ? []
@@ -79,7 +78,6 @@ in
7978
8079stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
8180 inherit ruby;
82− inherit doCheck;
8381 inherit dontBuild;
8482 inherit dontStrip;
8583 inherit type;
@@ -96,8 +94,6 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
9694
9795 inherit src;
9896
99− phases = attrs.phases or [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" "fixupPhase" ];
100−
10197 unpackPhase = attrs.unpackPhase or ''
10298 runHook preUnpack
10399