robinovitch61 / wander

A terminal app/TUI for HashiCorp Nomad
MIT License
442 stars 17 forks source link

[nix] Add flake support to wander #115

Closed dbalan closed 11 months ago

dbalan commented 11 months ago

This commit lets flake users import wander package directly from the repo, as well as quickly run wander with

nix run "github:robinovitch61/wander"
robinovitch61 commented 11 months ago

This is awesome! Thank you @dbalan :) Question: the version shown on wander is devel when run with nix flakes, which means "version unknown":

image

The version is pulled either from the git repo if it's being built in a context with the repo data, or manually specified with ldflags as per this bit of the README. My preference would be to have the version set and not have to be manually specified and kept in sync with the git tags. Think there's any way to do this reliably?