mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
buildRubyGem: ensure gem versions don't get misparsed
Without this, every nix-env --upgrade replaces ruby with an arbitrary gem, which makes Ruby unusuable from user environments.
This commit is contained in:
parent
75739fd05b
commit
b4da3bb88b
@ -32,7 +32,9 @@ lib.makeOverridable (
|
|||||||
, platform ? "ruby"
|
, platform ? "ruby"
|
||||||
, ruby ? defs.ruby
|
, ruby ? defs.ruby
|
||||||
, stdenv ? ruby.stdenv
|
, stdenv ? ruby.stdenv
|
||||||
, namePrefix ? "${ruby.name}" + "-"
|
, namePrefix ? (let
|
||||||
|
rubyName = builtins.parseDrvName ruby.name;
|
||||||
|
in "${rubyName.name}${rubyName.version}-")
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
, doCheck ? false
|
, doCheck ? false
|
||||||
, meta ? {}
|
, meta ? {}
|
||||||
|
Loading…
Reference in New Issue
Block a user