summary refs log tree commit diff
path: root/pkgs/development/tools/rhc/default.nix
blob: da8a8e2e77db29ed88993a9438582f4e31f22629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, bundlerEnv, ruby_2_2, stdenv, makeWrapper }:

stdenv.mkDerivation rec {
  name = "rhc-1.38.7";

  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
  '';

  meta = with lib; {
    homepage = https://github.com/openshift/rhc;
    description = "OpenShift client tools";
    license = licenses.asl20;
    maintaners = maintainers.szczyp;
  };
}