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

67 lines
2.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchzip }:
2020-11-13 17:03:10 +00:00
stdenv.mkDerivation rec {
pname = "octant";
2021-05-11 21:23:02 +00:00
version = "0.20.0";
2020-11-13 17:03:10 +00:00
2021-04-10 17:25:40 +00:00
src =
let
inherit (stdenv.hostPlatform) system;
suffix = {
x86_64-linux = "Linux-64bit";
aarch64-linux = "Linux-arm64";
x86_64-darwin = "macOS-64bit";
2021-05-19 10:31:17 +00:00
aarch64-darwin = "macOS-arm64";
2021-04-10 17:25:40 +00:00
}.${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 {
2021-05-11 21:23:02 +00:00
x86_64-linux = "sha256-VFlZP5d6/YhzVIhveqMc4HfapBt0K/XjtqjCQNc514A=";
aarch64-linux = "sha256-RfdMfimmoHG4ixBtUVJ/V+mDhQ9aD+yeohkeUMUP8Zg=";
x86_64-darwin = "sha256-2Qgl3RdA4mMRTqR7o3Q86Zip5wtgvFp1vZn689FUtSI=";
2021-05-19 10:31:17 +00:00
aarch64-darwin = "sha256-+eZVg+B5YYf+XnDhNd6OU4+yFM9GtyiavcAr/EXh7XE=";
2021-04-10 17:25:40 +00:00
};
2020-11-13 17:03:10 +00:00
dontConfigure = true;
dontBuild = true;
2020-11-13 17:03:10 +00:00
installPhase = ''
runHook preInstall
install -D octant $out/bin/octant
runHook postInstall
2020-11-13 17:03:10 +00:00
'';
2021-02-17 08:21:58 +00:00
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/octant --help
$out/bin/octant version | grep "${version}"
runHook postInstallCheck
'';
dontPatchELF = true;
dontPatchShebangs = true;
passthru.updateScript = ./update.sh;
meta = with lib; {
homepage = "https://octant.dev/";
changelog = "https://github.com/vmware-tanzu/octant/blob/v${version}/CHANGELOG.md";
description = "Highly extensible platform for developers to better understand the complexity of Kubernetes clusters";
2020-11-13 17:03:10 +00:00
longDescription = ''
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 17:03:10 +00:00
'';
license = licenses.asl20;
maintainers = with maintainers; [ jk ];
2021-05-19 10:31:17 +00:00
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
2020-11-13 17:03:10 +00:00
};
}