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:
parent
c1c38bb2b7
commit
707cbad5f8
7 changed files with 13 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue