openshift: 1.0.1 -> 1.3.0 (#18937)
This commit is contained in:
parent
912e26bf75
commit
40b77eeea3
41
pkgs/applications/networking/cluster/openshift/default.nix
Normal file → Executable file
41
pkgs/applications/networking/cluster/openshift/default.nix
Normal file → Executable file
@ -1,24 +1,42 @@
|
||||
{ stdenv, fetchgit, go, git, which }:
|
||||
{ stdenv, fetchFromGitHub, go, which }:
|
||||
|
||||
let
|
||||
version = "1.3.0";
|
||||
versionMajor = "1";
|
||||
versionMinor = "3";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openshift-origin-${version}";
|
||||
version = "1.0.1";
|
||||
inherit version;
|
||||
|
||||
src = fetchgit {
|
||||
url = https://github.com/openshift/origin.git;
|
||||
rev = "1b601951daa44964c9bc7e4a2264d65489e3a58c";
|
||||
sha256 = "0hvipgnkpph81jx6h6bar49j5zkrxzi6h71b4y75c0l7af129wdi";
|
||||
leaveDotGit = true;
|
||||
deepClone = true;
|
||||
src = fetchFromGitHub {
|
||||
owner = "openshift";
|
||||
repo = "origin";
|
||||
rev = "v${version}";
|
||||
sha256 = "07s7xv8x8pch68j7lsw29im0axi07x32ag9wh9aqa0y570q9xgxy";
|
||||
};
|
||||
|
||||
buildInputs = [ go git which ];
|
||||
buildInputs = [ go which ];
|
||||
|
||||
buildPhase = "hack/build-go.sh";
|
||||
patchPhase = ''
|
||||
patchShebangs ./hack
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
export GOPATH=$(pwd)
|
||||
# Openshift build require this variables to be set
|
||||
# unless there is a .git folder which is not the case with fetchFromGitHub
|
||||
export OS_GIT_VERSION=${version}
|
||||
export OS_GIT_MAJOR=${versionMajor}
|
||||
export OS_GIT_MINOR=${versionMinor}
|
||||
make build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
export GOOS=$(go env GOOS)
|
||||
export GOARCH=$(go env GOARCH)
|
||||
mkdir -p "$out/bin"
|
||||
cp _output/local/go/bin/* "$out/bin/"
|
||||
mv _output/local/bin/$GOOS/$GOARCH/* "$out/bin/"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
@ -27,6 +45,5 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://www.openshift.org;
|
||||
maintainers = with maintainers; [offline];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user