From eb9293e4d80ac4f232fb29dd70caeef3e6a7ea04 Mon Sep 17 00:00:00 2001 From: Justin Humm Date: Tue, 2 Apr 2019 16:47:36 +0200 Subject: [PATCH] ruby-modules/gem: fix path to git checkout In case of the gem type 'git', nix-bundle-install.rb was called with wrong path to the git checkout. ${src} does contain the sources, but not the newly generated .git dir, which is created in the buildPhase of pkgs/development/ruby-modules/gem/default.nix In some rare cases, this .git dir is needed at installPhase. --- pkgs/development/ruby-modules/gem/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/ruby-modules/gem/default.nix b/pkgs/development/ruby-modules/gem/default.nix index c881d4eb4744..7b92a586b54c 100644 --- a/pkgs/development/ruby-modules/gem/default.nix +++ b/pkgs/development/ruby-modules/gem/default.nix @@ -179,7 +179,7 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // { '${version}' \ '${lib.escapeShellArgs buildFlags}' \ '${attrs.source.url}' \ - '${src}' \ + '.' \ '${attrs.source.rev}' ''}