1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 13:06:01 +01:00

Show Determinate Nix version number

`nix --version` will now show `nix (Determinate Nix 1.0) 2.24.10`.
This commit is contained in:
Eelco Dolstra 2024-10-30 18:46:59 +01:00
parent c1c38bb2b7
commit 707cbad5f8
7 changed files with 13 additions and 4 deletions

View file

@ -294,7 +294,7 @@ void parseCmdLine(const std::string & programName, const Strings & args,
void printVersion(const std::string & programName)
{
std::cout << fmt("%1% (Determinate Nix) %2%", programName, nixVersion) << std::endl;
std::cout << fmt("%s (Determinate Nix %s) %s", programName, determinateNixVersion, nixVersion) << std::endl;
if (verbosity > lvlInfo) {
Strings cfg;
#if HAVE_BOEHMGC