nixpkgs/pkgs/applications/networking/cluster/odo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
850 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, testers, odo }:
2022-02-23 14:23:38 +00:00
buildGoModule rec {
pname = "odo";
2023-09-03 10:53:17 +00:00
version = "3.14.0";
2022-02-23 14:23:38 +00:00
src = fetchFromGitHub {
owner = "redhat-developer";
repo = "odo";
rev = "v${version}";
2023-09-03 10:53:17 +00:00
sha256 = "sha256-d6C+nOz60CPnEsSf74+WBTaeIXGKtysVELg0+dXM1cU=";
2022-02-23 14:23:38 +00:00
};
2023-04-20 01:40:52 +00:00
vendorHash = null;
2022-02-23 14:23:38 +00:00
buildPhase = ''
make bin
'';
installPhase = ''
mkdir -p $out/bin
cp -a odo $out/bin
'';
passthru.tests.version = testers.testVersion {
2022-02-23 14:23:38 +00:00
package = odo;
command = "odo version";
version = "v${version}";
};
meta = with lib; {
description = "Developer-focused CLI for OpenShift and Kubernetes";
license = licenses.asl20;
2022-10-21 12:35:21 +00:00
homepage = "https://odo.dev";
changelog = "https://github.com/redhat-developer/odo/releases/v${version}";
2022-02-23 14:23:38 +00:00
maintainers = with maintainers; [ stehessel ];
};
}