about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-09-14 20:36:57 +0100
committerGitHub <noreply@github.com>2017-09-14 20:36:57 +0100
commit9366d013f07cc15389ae9b6bb340c06c37aabfc5 (patch)
tree3a4e16c046da0ec2c5fb258be02501ff1f72642e /pkgs/applications/networking/cluster
parentcd972113586aacd1f722d95fe9fec4b122f7811d (diff)
parentd27f710b87f4bde3ab81bd75edd3c7dfc7550ebf (diff)
downloadnixlib-9366d013f07cc15389ae9b6bb340c06c37aabfc5.tar
nixlib-9366d013f07cc15389ae9b6bb340c06c37aabfc5.tar.gz
nixlib-9366d013f07cc15389ae9b6bb340c06c37aabfc5.tar.bz2
nixlib-9366d013f07cc15389ae9b6bb340c06c37aabfc5.tar.lz
nixlib-9366d013f07cc15389ae9b6bb340c06c37aabfc5.tar.xz
nixlib-9366d013f07cc15389ae9b6bb340c06c37aabfc5.tar.zst
nixlib-9366d013f07cc15389ae9b6bb340c06c37aabfc5.zip
Merge pull request #28345 from moretea/openshift-origin
openshift: 1.5.0 -> 3.6.0
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r--pkgs/applications/networking/cluster/openshift/default.nix21
1 files changed, 16 insertions, 5 deletions
diff --git a/pkgs/applications/networking/cluster/openshift/default.nix b/pkgs/applications/networking/cluster/openshift/default.nix
index 6ade5bab70e8..fdc97733c773 100644
--- a/pkgs/applications/networking/cluster/openshift/default.nix
+++ b/pkgs/applications/networking/cluster/openshift/default.nix
@@ -1,7 +1,7 @@
-{ stdenv, fetchFromGitHub, which, buildGoPackage }:
+{ stdenv, fetchFromGitHub, which, buildGoPackage, utillinux, coreutils }:
 
 let
-  version = "1.5.0";
+  version = "3.6.0";
   ver = stdenv.lib.elemAt (stdenv.lib.splitString "." version);
   versionMajor = ver 0;
   versionMinor = ver 1;
@@ -14,7 +14,7 @@ in buildGoPackage rec {
     owner = "openshift";
     repo = "origin";
     rev = "v${version}";
-    sha256 = "0qvyxcyca3888nkgvyvqcmybm95ncwxb3zvrzbg2gz8kx6g6350v";
+    sha256 = "08bdqvsjl6c7dmllyz8n4akb7gyn91znvbph5cgmmk1bhskycy1r";
   };
 
   buildInputs = [ which ];
@@ -22,13 +22,24 @@ in buildGoPackage rec {
   goPackagePath = null;
   patchPhase = ''
     patchShebangs ./hack
+    substituteInPlace pkg/bootstrap/docker/host/host.go  \
+      --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt findmnt' \
+      'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/findmnt'
+
+    substituteInPlace pkg/bootstrap/docker/host/host.go  \
+      --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt mount' \
+      'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/mount'
+
+    substituteInPlace pkg/bootstrap/docker/host/host.go  \
+      --replace 'nsenter --mount=/rootfs/proc/1/ns/mnt mkdir' \
+      'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/mount'
   '';
 
   buildPhase = ''
     cd go/src/origin-v${version}-src
     # 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_VERSION=v${version}
     export OS_GIT_MAJOR=${versionMajor}
     export OS_GIT_MINOR=${versionMinor}
     make build
@@ -43,7 +54,7 @@ in buildGoPackage rec {
     description = "Build, deploy, and manage your applications with Docker and Kubernetes";
     license = licenses.asl20;
     homepage = http://www.openshift.org;
-    maintainers = with maintainers; [offline bachp];
+    maintainers = with maintainers; [offline bachp moretea];
     platforms = platforms.linux;
   };
 }