mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
parent
3122317c2c
commit
2766b6227a
|
@ -1,17 +1,17 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, stdenv, testers, ocm }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, ocm }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "ocm";
|
pname = "ocm";
|
||||||
version = "0.1.73";
|
version = "1.0.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "openshift-online";
|
owner = "openshift-online";
|
||||||
repo = "ocm-cli";
|
repo = "ocm-cli";
|
||||||
rev = "v${version}";
|
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.
|
# Strip the final binary.
|
||||||
ldflags = [ "-s" "-w" ];
|
ldflags = [ "-s" "-w" ];
|
||||||
|
@ -23,8 +23,11 @@ buildGoModule rec {
|
||||||
ln -s $GOPATH/bin/ocm ocm
|
ln -s $GOPATH/bin/ocm ocm
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Tests fail in Darwin sandbox.
|
checkFlags = [
|
||||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
# Disable integration tests which require networking and gnupg which has issues in the sandbox
|
||||||
|
"-skip=^TestCLI$"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd ocm \
|
installShellCompletion --cmd ocm \
|
||||||
|
@ -43,7 +46,6 @@ buildGoModule rec {
|
||||||
mainProgram = "ocm";
|
mainProgram = "ocm";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
homepage = "https://github.com/openshift-online/ocm-cli";
|
homepage = "https://github.com/openshift-online/ocm-cli";
|
||||||
maintainers = with maintainers; [ stehessel ];
|
maintainers = with maintainers; [ stehessel jfchevrette ];
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue