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 # launch snitch
Type "./snitch top" Type "./snitch top"
Enter Enter
Sleep 1.5s Sleep 1s
# navigate down through connections # navigate down through connections
Down Down

View File

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