diff options
author | Christian Albrecht <christian.albrecht@mayflower.de> | 2018-11-16 23:18:51 +0100 |
---|---|---|
committer | Christian Albrecht <christian.albrecht@mayflower.de> | 2018-11-16 23:18:51 +0100 |
commit | 08c3c0094aa6492d1ba396f15201ab1ae00b588f (patch) | |
tree | 7ece94f41f8c74f66c798f4fc9e73a9340de7de6 /pkgs/applications/networking/cluster | |
parent | d59307e54c63daf42d98288ba4c7132ccc02daf2 (diff) |
minishift: add openshift input
minishift depdends on oc to control the openshift installation.
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r-- | pkgs/applications/networking/cluster/minishift/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/minishift/default.nix b/pkgs/applications/networking/cluster/minishift/default.nix index 13f73f51a319c..d5f16ab4ff017 100644 --- a/pkgs/applications/networking/cluster/minishift/default.nix +++ b/pkgs/applications/networking/cluster/minishift/default.nix @@ -1,5 +1,5 @@ { lib, buildGoPackage, fetchFromGitHub, go-bindata, pkgconfig, makeWrapper -, glib, gtk3, libappindicator-gtk3, gpgme, ostree, libselinux, btrfs-progs +, glib, gtk3, libappindicator-gtk3, gpgme, openshift, ostree, libselinux, btrfs-progs , lvm2, docker-machine-kvm }: @@ -31,6 +31,11 @@ in buildGoPackage rec { postPatch = '' substituteInPlace vendor/github.com/containers/image/storage/storage_image.go \ --replace 'nil, diff' 'diff' + + # minishift downloads openshift if not found therefore set the cache to /nix/store/... + substituteInPlace pkg/minishift/cache/oc_caching.go \ + --replace 'filepath.Join(oc.MinishiftCacheDir, OC_CACHE_DIR, oc.OpenShiftVersion, runtime.GOOS)' '"${openshift}/bin"' \ + --replace '"runtime"' "" ''; buildFlagsArray = '' @@ -49,7 +54,7 @@ in buildGoPackage rec { postInstall = '' wrapProgram "$bin/bin/minishift" \ - --prefix PATH ':' '${lib.makeBinPath [ docker-machine-kvm ]}' + --prefix PATH ':' '${lib.makeBinPath [ docker-machine-kvm openshift ]}' ''; meta = with lib; { |