Skip to content

Commit

Permalink
feat(packages/tracetest): 0.14.7 -> 0.14.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelreyrol committed Dec 1, 2023
1 parent 1a15655 commit b1545f3
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions src/packages/tracetest.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@
, buildNpmPackage
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:

let
pname = "tracetest";
version = "0.14.7";
version = "0.14.8";
src = fetchFromGitHub {
owner = "kubeshop";
repo = "tracetest";
rev = "v${version}";
hash = "sha256-9D4HUSbybMmerB5tXqQAwNXk+uaktrt0PJVlA5x0BYg=";
hash = "sha256-FkpxTtxUig0YNHpr0WKmxajLxhOGqRJqeG+dHz9Plcs=";
};
ui = buildNpmPackage {
inherit pname version src;

sourceRoot = "source/web";

npmDepsHash = "sha256-CiF71pWlUwAE/sZQh3NcC4sF36vNifV0YrsCteBIO2s=";
npmDepsHash = "sha256-YDPknS7EsA/SVFdMUE7ihjuxONgMgEyMxJO3pBWyH8U=";

npmPackFlags = [ "--ignore-scripts" ];

Expand All @@ -35,7 +36,9 @@ let
in buildGoModule rec {
inherit pname version src;

vendorHash = "sha256-6ojTDKA5XgOzmNHWID8lwH/07O0PC5wNNsCfTBZquEI=";
vendorHash = "sha256-Zl2hpJ9NMWHCWS4fbSXjWFU1vK658Ozme/UoBH/2Cpg=";

nativeBuildInputs = [ installShellFiles ];

subPackages = [ "cli" "server" ];

Expand All @@ -49,6 +52,28 @@ in buildGoModule rec {
cp -r ${ui} web/build
'';

installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp $GOPATH/bin/cli $out/bin/tracetest
cp $GOPATH/bin/server $out/bin/tracetest-server
runHook postInstall
'';

postInstall = ''
installShellCompletion --cmd tracetest \
--bash <($out/bin/tracetest completion bash) \
--fish <($out/bin/tracetest completion fish) \
--zsh <($out/bin/tracetest completion zsh)
installShellCompletion --cmd tracetest-server \
--bash <($out/bin/tracetest-server completion bash) \
--fish <($out/bin/tracetest-server completion fish) \
--zsh <($out/bin/tracetest-server completion zsh)
'';

doCheck = false;

passthru = {
Expand Down

0 comments on commit b1545f3

Please sign in to comment.