2018-02-14 12:53:54 +03:00
|
|
|
{ lib, bundlerEnv, ruby, stdenv, makeWrapper }:
|
2015-08-13 17:56:49 +03:00
|
|
|
|
2017-02-03 09:47:35 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rhc-1.38.7";
|
2015-08-13 17:56:49 +03:00
|
|
|
|
2017-02-03 09:47:35 +03:00
|
|
|
env = bundlerEnv {
|
|
|
|
name = "rhc-1.38.7-gems";
|
|
|
|
|
2018-02-14 12:53:54 +03:00
|
|
|
inherit ruby;
|
2017-02-03 09:47:35 +03:00
|
|
|
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/rhc $out/bin/rhc
|
|
|
|
'';
|
2015-08-13 17:56:49 +03:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-02-14 12:53:54 +03:00
|
|
|
broken = true; # requires ruby 2.2
|
2015-08-13 17:56:49 +03:00
|
|
|
homepage = https://github.com/openshift/rhc;
|
|
|
|
description = "OpenShift client tools";
|
|
|
|
license = licenses.asl20;
|
2017-12-06 01:20:11 +03:00
|
|
|
maintainers = [ maintainers.szczyp ];
|
2015-08-13 17:56:49 +03:00
|
|
|
};
|
|
|
|
}
|