The nix flake is missing the ldflags to add the version information.
There isn't a way to a way to run git describe inside the nix flake afaik since the .git folder is removed when being copied into the nix store but from a nix flake we can access the current commit using self.rev, self.shortRev, and self.revCount.
This doesn't give us the git tag however so tag would need to be specified elsewhere.
Monorepo for Tangled
tangled.org
nix flake doesn't build knotserver with version information #133
open
opened by
yemou.pink
ah yeah, i think the simplest way forward here is to use the derivations' version; or emit a .version file in the unpack phase maybe?