2021-02-02 16:11:54 +01:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2020-11-13 18:03:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "octant";
|
2021-04-10 19:25:40 +02:00
|
|
|
version = "0.19.0";
|
2020-11-13 18:03:10 +01:00
|
|
|
|
2021-04-10 19:25:40 +02:00
|
|
|
src =
|
|
|
|
let
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
suffix = {
|
|
|
|
x86_64-linux = "Linux-64bit";
|
|
|
|
aarch64-linux = "Linux-arm64";
|
|
|
|
x86_64-darwin = "macOS-64bit";
|
|
|
|
}.${system} or (throw "Unsupported system: ${system}");
|
|
|
|
fetchsrc = version: sha256: fetchzip {
|
|
|
|
url = "https://github.com/vmware-tanzu/octant/releases/download/v${version}/octant_${version}_${suffix}.tar.gz";
|
|
|
|
sha256 = sha256.${system};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
fetchsrc version {
|
|
|
|
x86_64-linux = "sha256-TKvUBof4TLcHr9hg6AOLjVd1NcAX9HHVuuABdFKRNQA=";
|
|
|
|
aarch64-linux = "sha256-BJb7h6kJZ3QhdlEqNHkiFp91uYLXzYHvKftxEAhjY38=";
|
|
|
|
x86_64-darwin = "sha256-Ig98IqLmlN9D4iXrP9SXYwTrQOvbtQ/tQW+uEmntm+I=";
|
|
|
|
};
|
2020-11-13 18:03:10 +01:00
|
|
|
|
2021-02-02 16:11:54 +01:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
2020-11-13 18:03:10 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-02 16:11:54 +01:00
|
|
|
runHook preInstall
|
|
|
|
install -D octant $out/bin/octant
|
|
|
|
runHook postInstall
|
2020-11-13 18:03:10 +01:00
|
|
|
'';
|
|
|
|
|
2021-02-17 09:21:58 +01:00
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/octant --help
|
|
|
|
$out/bin/octant version | grep "${version}"
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
|
|
|
|
2021-02-02 16:11:54 +01:00
|
|
|
dontPatchELF = true;
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-02-02 16:11:54 +01:00
|
|
|
homepage = "https://octant.dev/";
|
|
|
|
changelog = "https://github.com/vmware-tanzu/octant/blob/v${version}/CHANGELOG.md";
|
2021-03-26 11:32:37 +01:00
|
|
|
description = "Highly extensible platform for developers to better understand the complexity of Kubernetes clusters";
|
2020-11-13 18:03:10 +01:00
|
|
|
longDescription = ''
|
2021-03-26 11:32:37 +01:00
|
|
|
Octant is a tool for developers to understand how applications run on a
|
|
|
|
Kubernetes cluster.
|
|
|
|
It aims to be part of the developer's toolkit for gaining insight and
|
|
|
|
approaching complexity found in Kubernetes. Octant offers a combination of
|
|
|
|
introspective tooling, cluster navigation, and object management along
|
|
|
|
with a plugin system to further extend its capabilities.
|
2020-11-13 18:03:10 +01:00
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jk ];
|
2021-02-02 16:11:54 +01:00
|
|
|
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
|
2020-11-13 18:03:10 +01:00
|
|
|
};
|
|
|
|
}
|