2017-02-03 06:47:35 +00:00
|
|
|
{ lib, bundlerEnv, ruby_2_2, stdenv, makeWrapper }:
|
2015-08-13 14:56:49 +00:00
|
|
|
|
2017-02-03 06:47:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rhc-1.38.7";
|
2015-08-13 14:56:49 +00:00
|
|
|
|
2017-02-03 06:47:35 +00:00
|
|
|
env = bundlerEnv {
|
|
|
|
name = "rhc-1.38.7-gems";
|
|
|
|
|
|
|
|
ruby = ruby_2_2;
|
|
|
|
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/rhc $out/bin/rhc
|
|
|
|
'';
|
2015-08-13 14:56:49 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/openshift/rhc;
|
|
|
|
description = "OpenShift client tools";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintaners = maintainers.szczyp;
|
|
|
|
};
|
|
|
|
}
|