mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
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.
This commit is contained in:
parent
1aa59bfd3f
commit
fced35fa44
@ -36,7 +36,6 @@ lib.makeOverridable (
|
||||
rubyName = builtins.parseDrvName ruby.name;
|
||||
in "${rubyName.name}${rubyName.version}-")
|
||||
, buildInputs ? []
|
||||
, doCheck ? false
|
||||
, meta ? {}
|
||||
, patches ? []
|
||||
, gemPath ? []
|
||||
@ -79,7 +78,6 @@ in
|
||||
|
||||
stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
|
||||
inherit ruby;
|
||||
inherit doCheck;
|
||||
inherit dontBuild;
|
||||
inherit dontStrip;
|
||||
inherit type;
|
||||
@ -96,8 +94,6 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
|
||||
|
||||
inherit src;
|
||||
|
||||
phases = attrs.phases or [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" "fixupPhase" ];
|
||||
|
||||
unpackPhase = attrs.unpackPhase or ''
|
||||
runHook preUnpack
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user