nixpkgs/pkgs/tools/package-management/gem-nix/default.nix

24 lines
567 B
Nix
Raw Normal View History

2014-09-11 22:26:13 +00: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";
platforms = platforms.unix;
2014-09-11 22:26:13 +00:00
maintainers = [ maintainers.iElectric ];
};
}