mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 13:53:05 +00:00
e8194c2c5b
* remove EOL ruby versions for security and maintenance reasons. * only expose ruby_MAJOR_MINOR to the top-level. we don't provide guarantees for the TINY version. * mark all related packages as broken * switch the default ruby version from 2.3.x to 2.4.x
31 lines
585 B
Nix
31 lines
585 B
Nix
{ lib, bundlerEnv, ruby, stdenv, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rhc-1.38.7";
|
|
|
|
env = bundlerEnv {
|
|
name = "rhc-1.38.7-gems";
|
|
|
|
inherit ruby;
|
|
|
|
gemdir = ./.;
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${env}/bin/rhc $out/bin/rhc
|
|
'';
|
|
|
|
meta = with lib; {
|
|
broken = true; # requires ruby 2.2
|
|
homepage = https://github.com/openshift/rhc;
|
|
description = "OpenShift client tools";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.szczyp ];
|
|
};
|
|
}
|