2017-02-03 07:47:35 +01:00
|
|
|
{ lib, bundlerEnv, ruby_2_2, stdenv, makeWrapper }:
|
2015-08-13 16:56:49 +02:00
|
|
|
|
2017-02-03 07:47:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rhc-1.38.7";
|
2015-08-13 16:56:49 +02:00
|
|
|
|
2017-02-03 07:47:35 +01: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 16:56:49 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/openshift/rhc;
|
|
|
|
description = "OpenShift client tools";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintaners = maintainers.szczyp;
|
|
|
|
};
|
|
|
|
}
|