openshift: 1.3.2 -> 1.5.0

This commit is contained in:
Pascal Bach 2017-04-30 23:16:33 +02:00
parent 39f55e7c2b
commit 239d352080

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, go, which }:
{ stdenv, fetchFromGitHub, go, which, removeReferencesTo, makeWrapper }:
let
version = "1.3.2";
version = "1.5.0";
ver = stdenv.lib.elemAt (stdenv.lib.splitString "." version);
versionMajor = ver 0;
versionMinor = ver 1;
@ -15,10 +15,10 @@ stdenv.mkDerivation rec {
owner = "openshift";
repo = "origin";
rev = "v${version}";
sha256 = "0zw8zb9c6icigcq6y47ppnjnqyghk2kril07bapbddvgnvbbfp6m";
sha256 = "0qvyxcyca3888nkgvyvqcmybm95ncwxb3zvrzbg2gz8kx6g6350v";
};
buildInputs = [ go which ];
buildInputs = [ go which removeReferencesTo makeWrapper ];
patchPhase = ''
patchShebangs ./hack
@ -41,6 +41,10 @@ stdenv.mkDerivation rec {
mv _output/local/bin/$GOOS/$GOARCH/* "$out/bin/"
'';
preFixup = ''
find $out/bin -type f -exec remove-references-to -t ${go} '{}' +
'';
meta = with stdenv.lib; {
description = "Build, deploy, and manage your applications with Docker and Kubernetes";
license = licenses.asl20;