2018-02-14 10:53:54 +01:00
|
|
|
{ lib, bundlerEnv, ruby, 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";
|
|
|
|
|
2018-02-14 10:53:54 +01:00
|
|
|
inherit ruby;
|
2017-02-03 07:47:35 +01:00
|
|
|
|
|
|
|
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; {
|
2018-02-14 10:53:54 +01:00
|
|
|
broken = true; # requires ruby 2.2
|
2015-08-13 16:56:49 +02:00
|
|
|
homepage = https://github.com/openshift/rhc;
|
|
|
|
description = "OpenShift client tools";
|
|
|
|
license = licenses.asl20;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = [ maintainers.szczyp ];
|
2015-08-13 16:56:49 +02:00
|
|
|
};
|
|
|
|
}
|