2022-04-20 15:40:48 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, odo }:
|
2022-02-23 14:23:38 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "odo";
|
2022-07-29 14:58:07 +01:00
|
|
|
version = "2.5.1";
|
2022-02-23 14:23:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redhat-developer";
|
|
|
|
repo = "odo";
|
|
|
|
rev = "v${version}";
|
2022-07-29 14:58:07 +01:00
|
|
|
sha256 = "sha256-+UvG+aDji/GtkXdt+xZB06j6NxjeK2nhBjle5K+lx/A=";
|
2022-02-23 14:23:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a odo $out/bin
|
|
|
|
'';
|
|
|
|
|
2022-04-20 15:40:48 +01:00
|
|
|
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;
|
|
|
|
homepage = "odo.dev";
|
|
|
|
maintainers = with maintainers; [ stehessel ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|