1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00

ocm: 0.1.73 -> 1.0.2 (#361805)

ocm-cli: 0.1.73 -> 1.0.2
This commit is contained in:
Jean-Francois Chevrette 2024-12-10 00:06:18 -05:00 committed by GitHub
parent 3122317c2c
commit 2766b6227a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ];
};
}