From 4a91ce99a774e19d8369a742482632522de5c2a1 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 13 Nov 2024 13:17:41 -0600 Subject: [PATCH] fix nix build and add back version --- nimble.lock | 4 ++-- src/tsm.nim | 3 +++ tsm.nimble | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nimble.lock b/nimble.lock index bc4c8b4..9cb81ce 100644 --- a/nimble.lock +++ b/nimble.lock @@ -3,12 +3,12 @@ "packages": { "hwylterm": { "version": "0.1.0", - "vcsRevision": "2a5dce888d7abf5409a62208d951ac3a4e6babfa", + "vcsRevision": "cbeefd675c0884feebad4dc62910092519f8b2ed", "url": "https://github.com/daylinmorgan/hwylterm", "downloadMethod": "git", "dependencies": [], "checksums": { - "sha1": "56afeceb88973f730111cfa7d02aef2d0cf88197" + "sha1": "4d043352ad07388d0181c0fd4cf325317e9306d0" } }, "illwill": { diff --git a/src/tsm.nim b/src/tsm.nim index f4f7ad3..81326df 100644 --- a/src/tsm.nim +++ b/src/tsm.nim @@ -12,6 +12,9 @@ proc tsm(open: bool = false) = else: tmux.attach project.name +const tsmVersion {.strDefine.} = + staticExec "git describe --tags --always HEAD --match 'v*'" + hwylCli: name "tsm" V tsmVersion diff --git a/tsm.nimble b/tsm.nimble index f513317..c9b8fba 100644 --- a/tsm.nimble +++ b/tsm.nimble @@ -12,6 +12,6 @@ binDir = "bin" requires "nim >= 2.0.0" requires "illwill >= 0.4.1" -requires "https://github.com/daylinmorgan/hwylterm#2a5dce88" +requires "https://github.com/daylinmorgan/hwylterm#cbeefd67" requires "https://github.com/usu-dev/usu-nim"