2014-09-12 00:26:13 +02:00
|
|
|
{ stdenv, rubygems, rubyLibs, ruby, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gem-nix";
|
|
|
|
|
|
|
|
buildInputs = [ ruby rubygems rubyLibs.nix makeWrapper ];
|
|
|
|
|
|
|
|
phases = ["installPhase"];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
echo 'exec ${rubygems}/bin/gem nix "$@"' >> $out/bin/gem-nix
|
|
|
|
chmod +x $out/bin/gem-nix
|
|
|
|
wrapProgram $out/bin/gem-nix \
|
|
|
|
--set GEM_PATH $GEM_PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "gem nix command in a nice wrapper";
|
2014-09-18 11:18:25 +02:00
|
|
|
platforms = platforms.unix;
|
2014-09-12 00:26:13 +02:00
|
|
|
maintainers = [ maintainers.iElectric ];
|
|
|
|
};
|
|
|
|
}
|