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