chruby package: a utlity for switching the current ruby version.
This commit is contained in:
parent
f36972dd9c
commit
d696f56324
2 changed files with 30 additions and 0 deletions
28
pkgs/development/tools/misc/chruby/default.nix
Normal file
28
pkgs/development/tools/misc/chruby/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv, lib, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "chruby";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "postmodern";
|
||||
repo = "chruby";
|
||||
rev = "d5ae98410311aec1358d4cfcc1e3ec02de593c3b";
|
||||
sha256 = "1iq9milnnj3189yw02hkly2pnnh4g0vn2fxq6dfx90kldjwpwxq5";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r bin $out
|
||||
cp -r share $out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Changes the current Ruby";
|
||||
homepage = https://github.com/postmodern/chruby;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
};
|
||||
}
|
|
@ -4267,6 +4267,8 @@ let
|
|||
|
||||
chrpath = callPackage ../development/tools/misc/chrpath { };
|
||||
|
||||
chruby = callPackage ../development/tools/misc/chruby { };
|
||||
|
||||
"cl-launch" = callPackage ../development/tools/misc/cl-launch {};
|
||||
|
||||
complexity = callPackage ../development/tools/misc/complexity { };
|
||||
|
|
Loading…
Reference in a new issue