lol

Merge pull request #28345 from moretea/openshift-origin

openshift: 1.5.0 -> 3.6.0

authored by

Jörg Thalheim and committed by
GitHub
9366d013 cd972113

+16 -5
+16 -5
pkgs/applications/networking/cluster/openshift/default.nix
··· 1 - { stdenv, fetchFromGitHub, which, buildGoPackage }: 2 3 let 4 - version = "1.5.0"; 5 ver = stdenv.lib.elemAt (stdenv.lib.splitString "." version); 6 versionMajor = ver 0; 7 versionMinor = ver 1; ··· 14 owner = "openshift"; 15 repo = "origin"; 16 rev = "v${version}"; 17 - sha256 = "0qvyxcyca3888nkgvyvqcmybm95ncwxb3zvrzbg2gz8kx6g6350v"; 18 }; 19 20 buildInputs = [ which ]; ··· 22 goPackagePath = null; 23 patchPhase = '' 24 patchShebangs ./hack 25 ''; 26 27 buildPhase = '' 28 cd go/src/origin-v${version}-src 29 # Openshift build require this variables to be set 30 # unless there is a .git folder which is not the case with fetchFromGitHub 31 - export OS_GIT_VERSION=${version} 32 export OS_GIT_MAJOR=${versionMajor} 33 export OS_GIT_MINOR=${versionMinor} 34 make build ··· 43 description = "Build, deploy, and manage your applications with Docker and Kubernetes"; 44 license = licenses.asl20; 45 homepage = http://www.openshift.org; 46 - maintainers = with maintainers; [offline bachp]; 47 platforms = platforms.linux; 48 }; 49 }
··· 1 + { stdenv, fetchFromGitHub, which, buildGoPackage, utillinux, coreutils }: 2 3 let 4 + version = "3.6.0"; 5 ver = stdenv.lib.elemAt (stdenv.lib.splitString "." version); 6 versionMajor = ver 0; 7 versionMinor = ver 1; ··· 14 owner = "openshift"; 15 repo = "origin"; 16 rev = "v${version}"; 17 + sha256 = "08bdqvsjl6c7dmllyz8n4akb7gyn91znvbph5cgmmk1bhskycy1r"; 18 }; 19 20 buildInputs = [ which ]; ··· 22 goPackagePath = null; 23 patchPhase = '' 24 patchShebangs ./hack 25 + substituteInPlace pkg/bootstrap/docker/host/host.go \ 26 + --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt findmnt' \ 27 + 'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/findmnt' 28 + 29 + substituteInPlace pkg/bootstrap/docker/host/host.go \ 30 + --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt mount' \ 31 + 'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/mount' 32 + 33 + substituteInPlace pkg/bootstrap/docker/host/host.go \ 34 + --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt mkdir' \ 35 + 'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/mount' 36 ''; 37 38 buildPhase = '' 39 cd go/src/origin-v${version}-src 40 # Openshift build require this variables to be set 41 # unless there is a .git folder which is not the case with fetchFromGitHub 42 + export OS_GIT_VERSION=v${version} 43 export OS_GIT_MAJOR=${versionMajor} 44 export OS_GIT_MINOR=${versionMinor} 45 make build ··· 54 description = "Build, deploy, and manage your applications with Docker and Kubernetes"; 55 license = licenses.asl20; 56 homepage = http://www.openshift.org; 57 + maintainers = with maintainers; [offline bachp moretea]; 58 platforms = platforms.linux; 59 }; 60 }