nixpkgs-suyu/pkgs/development/tools/rhc/default.nix
Szczyp 33c09a0e40 rhc: 1.36.4 -> 1.38.7
Fix: CVE-2016-10173
2017-02-06 01:10:51 +01:00

29 lines
548 B
Nix

{ 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;
};
}