Skip to content

Commit

Permalink
minikube: 0.16.0 -> 0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hoeg committed Mar 6, 2017
1 parent c9b4317 commit 35dbe4d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/applications/networking/cluster/minikube/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,33 @@ let
then "linux-amd64"
else "darwin-amd64";
checksum = if stdenv.isLinux
then "0njx4vzr0cpr3dba08w0jrlpfb8qrmxq5lqfrk3qrx29x5y6i6hi"
else "0i21m1pys6rdxcwsk987l08lhzpcbg4bdrznaam02g6jj6jxvq0x";
then "0cdcabsx5l4jbpyj3zzyz5bnzks6wl64bmzdsnk41x92ar5y5yal"
else "12f3b7s5lwpvzx4wj6i6h62n4zjshqf206fxxwpwx9kpsdaw6xdi";

# TODO: compile from source

in stdenv.mkDerivation rec {
pname = "minikube";
version = "0.16.0";
version = "0.17.1";
name = "${pname}-${version}";

src = fetchurl {
url = "https://storage.googleapis.com/minikube/releases/v${version}/minikube-${arch}";
sha256 = "${checksum}";
};

phases = [ "installPhase" ];
phases = [ "installPhase" "fixupPhase" ];

buildInputs = [ makeWrapper ];

binPath = lib.makeBinPath [ docker-machine-kvm kubernetes libvirt qemu ];

installPhase = ''
install -Dm755 ${src} $out/bin/${pname}
'';

fixupPhase = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/bin/minikube"
wrapProgram $out/bin/${pname} \
--prefix PATH : ${binPath}
Expand Down

3 comments on commit 35dbe4d

@copumpkin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterhoeg @ebzzry I'm thinking of trying to get the source build to work this weekend. It also doesn't actually work on Darwin right now, since neither that docker-machine-kvm package nor the patchelf call work or really make sense on Darwin.

@peterhoeg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great news @copumpkin. I did have a go at it a week ago or so, but the problem I couldn't solve was that go2nix didn't seem to pick up the dependencies - compilation otherwise worked fine in nix-shell.

@copumpkin
Copy link
Member

@copumpkin copumpkin commented on 35dbe4d Mar 12, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.