Revert "bundix: 2.2.0"

This commit is contained in:
Graham Christensen 2016-09-02 16:00:45 -04:00 committed by GitHub
parent ce3daae51a
commit add3d4d45b

View File

@ -1,25 +1,32 @@
{ lib, stdenv, fetchFromGitHub, nix, nix-prefetch-git, bundler, makeWrapper }: { buildRubyGem, lib, bundler, ruby, nix, nix-prefetch-git }:
stdenv.mkDerivation rec {
version = "2.2.0";
name = "bundix-${version}";
src = fetchFromGitHub { buildRubyGem rec {
owner = "manveru"; inherit ruby;
repo = "bundix";
rev = version; name = "${gemName}-${version}";
sha256 = "0lnzkwxprdz73axk54y5p5xkw56n3lra9v2dsvqjfw0ab66ld0iy"; gemName = "bundix";
}; version = "2.0.8";
phases = "installPhase";
installPhase = '' sha256 = "0ikpf2g01izadjpdnc4k2rb9v4g11f1jk2y5alxc7n7rxjkwdc66";
mkdir -p $out
makeWrapper $src/bin/bundix $out/bin/bundix \ buildInputs = [bundler];
--prefix PATH : "${nix.out}/bin" \
--prefix PATH : "${nix-prefetch-git.out}/bin" \ postInstall = ''
--set GEM_PATH "${bundler}/${bundler.ruby.gemPath}" substituteInPlace $GEM_HOME/gems/${gemName}-${version}/lib/bundix.rb \
--replace \
"'nix-instantiate'" \
"'${nix.out}/bin/nix-instantiate'" \
--replace \
"'nix-hash'" \
"'${nix.out}/bin/nix-hash'" \
--replace \
"'nix-prefetch-url'" \
"'${nix.out}/bin/nix-prefetch-url'" \
--replace \
"'nix-prefetch-git'" \
"'${nix-prefetch-git}/bin/nix-prefetch-git'"
''; '';
nativeBuildInputs = [makeWrapper];
meta = { meta = {
inherit version; inherit version;
description = "Creates Nix packages from Gemfiles"; description = "Creates Nix packages from Gemfiles";