3
0
Fork 0
forked from mirrors/nixpkgs
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
795 B
Nix
Raw Normal View History

{ 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
'';
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;
};
}