mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #12866 from nathan7/rubygem-drvname-fix
buildRubyGem: ensure gem versions don't get misparsed
This commit is contained in:
commit
cdbaee7d4b
1 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,9 @@ lib.makeOverridable (
|
|||
, platform ? "ruby"
|
||||
, ruby ? defs.ruby
|
||||
, stdenv ? ruby.stdenv
|
||||
, namePrefix ? "${ruby.name}" + "-"
|
||||
, namePrefix ? (let
|
||||
rubyName = builtins.parseDrvName ruby.name;
|
||||
in "${rubyName.name}${rubyName.version}-")
|
||||
, buildInputs ? []
|
||||
, doCheck ? false
|
||||
, meta ? {}
|
||||
|
@ -89,7 +91,7 @@ stdenv.mkDerivation (attrs // {
|
|||
++ lib.optional stdenv.isDarwin darwin.libobjc
|
||||
++ buildInputs;
|
||||
|
||||
name = attrs.name or (namePrefix + gemName);
|
||||
name = attrs.name or "${namePrefix}${gemName}-${version}";
|
||||
|
||||
inherit src;
|
||||
|
||||
|
|
Loading…
Reference in a new issue