octant: refactor
Move octant more inline with recent boundary package
This commit is contained in:
parent
f420ef7d80
commit
1b8d51e05c
@ -1,38 +1,45 @@
|
|||||||
{ lib, stdenv, fetchurl }:
|
{ lib, stdenv, fetchzip }:
|
||||||
let
|
|
||||||
version = "0.16.3";
|
|
||||||
|
|
||||||
system = stdenv.hostPlatform.system;
|
let
|
||||||
|
inherit (stdenv.hostPlatform) system;
|
||||||
suffix = {
|
suffix = {
|
||||||
x86_64-linux = "Linux-64bit";
|
x86_64-linux = "Linux-64bit";
|
||||||
aarch64-linux = "Linux-arm64";
|
aarch64-linux = "Linux-arm64";
|
||||||
x86_64-darwin = "macOS-64bit";
|
x86_64-darwin = "macOS-64bit";
|
||||||
}."${system}" or (throw "Unsupported system: ${system}");
|
}."${system}" or (throw "Unsupported system: ${system}");
|
||||||
|
|
||||||
baseurl = "https://github.com/vmware-tanzu/octant/releases/download";
|
baseurl = "https://github.com/vmware-tanzu/octant/releases/download";
|
||||||
fetchsrc = sha256: fetchurl {
|
fetchsrc = version: sha256: fetchzip {
|
||||||
url = "${baseurl}/v${version}/octant_${version}_${suffix}.tar.gz";
|
url = "${baseurl}/v${version}/octant_${version}_${suffix}.tar.gz";
|
||||||
sha256 = sha256."${system}";
|
sha256 = sha256."${system}";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "octant";
|
pname = "octant";
|
||||||
inherit version;
|
version = "0.16.3";
|
||||||
|
|
||||||
src = fetchsrc {
|
src = fetchsrc version {
|
||||||
x86_64-linux = "1c6v7d8i494k32b0zrjn4fn1idza95r6h99c33c5za4hi7gqvy0x";
|
x86_64-linux = "sha256-YqwQOfE1Banq9s80grZjALC7Td/P1Y0gMVGG1FXE7vY=";
|
||||||
aarch64-linux = "153jd4wsq8qc598w7y4d30dy20ljyhrl68cc3pig1p712l5258zs";
|
aarch64-linux = "sha256-eMwBgAtjAuxeiLhWzKB8TMMM6xjFI/BL6Rjnd/ksMBs=";
|
||||||
x86_64-darwin = "0y2qjdlyvhrzwg0fmxsr3jl39kd13276a7wg0ndhdjfwxvdwpxkz";
|
x86_64-darwin = "sha256-f7ks77jPGzPPIguleEg9aF2GG+w0ihIgyoiCdZiGeIw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/bin"
|
runHook preInstall
|
||||||
mv octant $out/bin
|
install -D octant $out/bin/octant
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
dontPatchELF = true;
|
||||||
|
dontPatchShebangs = true;
|
||||||
|
|
||||||
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
||||||
meta = with lib; {
|
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.";
|
description = "Highly extensible platform for developers to better understand the complexity of Kubernetes clusters.";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Octant is a tool for developers to understand how applications run on a Kubernetes cluster.
|
Octant is a tool for developers to understand how applications run on a Kubernetes cluster.
|
||||||
@ -40,9 +47,8 @@ stdenv.mkDerivation rec {
|
|||||||
Octant offers a combination of introspective tooling, cluster navigation, and object management along with a
|
Octant offers a combination of introspective tooling, cluster navigation, and object management along with a
|
||||||
plugin system to further extend its capabilities.
|
plugin system to further extend its capabilities.
|
||||||
'';
|
'';
|
||||||
homepage = "https://octant.dev/";
|
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
|
|
||||||
maintainers = with maintainers; [ jk ];
|
maintainers = with maintainers; [ jk ];
|
||||||
|
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user