chore(demo): update demo

This commit is contained in:
Karol Broda
2025-12-18 08:14:10 +01:00
parent 3c3656966e
commit 2c9ce1445f
3 changed files with 7 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@@ -21,7 +21,7 @@ Env FORCE_COLOR "1"
# launch snitch
Type "./snitch top"
Enter
Sleep 1.5s
Sleep 1s
# navigate down through connections
Down

View File

@@ -59,17 +59,20 @@
overlays = [ goOverlay ];
};
in
let
version = self.shortRev or self.dirtyShortRev or "dev";
in
{
default = pkgs.buildGoModule {
pname = "snitch";
version = self.shortRev or self.dirtyShortRev or "dev";
inherit version;
src = self;
vendorHash = "sha256-fX3wOqeOgjH7AuWGxPQxJ+wbhp240CW8tiF4rVUUDzk=";
env.CGO_ENABLED = 0;
ldflags = [
"-s" "-w"
"-X snitch/cmd.Version=${self.shortRev or "dev"}"
"-X snitch/cmd.Commit=${self.shortRev or "none"}"
"-X snitch/cmd.Version=${version}"
"-X snitch/cmd.Commit=${version}"
"-X snitch/cmd.Date=${self.lastModifiedDate or "unknown"}"
];
meta = with pkgs.lib; {