diff --git a/pkgs/by-name/oc/ocm/package.nix b/pkgs/by-name/oc/ocm/package.nix index 1b2b5568cdd1..1f4aedc372ea 100644 --- a/pkgs/by-name/oc/ocm/package.nix +++ b/pkgs/by-name/oc/ocm/package.nix @@ -1,17 +1,17 @@ -{ lib, buildGoModule, fetchFromGitHub, installShellFiles, stdenv, testers, ocm }: +{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, ocm }: buildGoModule rec { pname = "ocm"; - version = "0.1.73"; + version = "1.0.2"; src = fetchFromGitHub { owner = "openshift-online"; repo = "ocm-cli"; rev = "v${version}"; - sha256 = "sha256-hcbCUzC+E7VHmqATw/1LQxdMLiFibgYiWrQHpm3jZLA="; + sha256 = "sha256-cKXC7+Hn+74ukHG7iN4QwIv9vuPXm8FKyaKPD62S5ck="; }; - vendorHash = "sha256-NP5LLP27hn8p2gUVO/qpdu1Yp3t8iarUUKR/FjU0Qlc="; + vendorHash = "sha256-uj4xmNZViag+j4YavFjDvc/ClMBb99DhwlcKzvGWQ7c="; # Strip the final binary. ldflags = [ "-s" "-w" ]; @@ -23,8 +23,11 @@ buildGoModule rec { ln -s $GOPATH/bin/ocm ocm ''; - # Tests fail in Darwin sandbox. - doCheck = !stdenv.hostPlatform.isDarwin; + checkFlags = [ + # Disable integration tests which require networking and gnupg which has issues in the sandbox + "-skip=^TestCLI$" + ]; + postInstall = '' installShellCompletion --cmd ocm \ @@ -43,7 +46,6 @@ buildGoModule rec { mainProgram = "ocm"; license = licenses.asl20; homepage = "https://github.com/openshift-online/ocm-cli"; - maintainers = with maintainers; [ stehessel ]; - platforms = platforms.all; + maintainers = with maintainers; [ stehessel jfchevrette ]; }; }