Nixos-rebuild and nix flake check fails: error: program 'git' failed with exit code 128

Today I encountered a weird error, something I’ve never seen in my year and so of using NixOS. Here it is:

➜  LC_ALL=C sudo nixos-rebuild build --flake .#
[sudo] password for jorge:
building the system configuration...
evaluating derivation 'git+file:///home/jorge/puntoarchivos#nixosConfigurations."woody".config.system.build.toplevel'fatal: unable to read tree (fdcdd095f3b721485bee6c4b61f101e52aeecc88)
error:
       … while calling the 'head' builtin
         at /nix/store/vj980b72z6zb0yg6v0a7nzc9rcww3jmn-source/lib/attrsets.nix:1534:13:
         1533|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1534|             head values
             |             ^
         1535|           else

       … while evaluating the attribute 'value'
         at /nix/store/vj980b72z6zb0yg6v0a7nzc9rcww3jmn-source/lib/modules.nix:1084:7:
         1083|     // {
         1084|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1085|       inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: program 'git' failed with exit code 128

I can run home-manager switch just fine, but nixos-rebuild is impossible

Here is the error message but with the full trace: weird bug with NixOS rebuild and nix flake check · GitHub

This is my configuration: Jorge Javier Araya Navarro / puntoarchivos · GitLab

so, I deleted the .git folder, made a fresh one, added all files and tried running sudo nixos-rebuild build --flake .# and… the same error!?

how is that even possible?

after removing most of my inputs, except for the nixpkgs, home-manager and sops, I can now rebuild my system again.

So, the problem may be one of my inputs, but NixOS makes errors so meaningless that figuring it would be a challenge

fdcdd095f3b721485bee6c4b61f101e52aeecc88 is not a commit that exists in that dxvk repo, the lockfile is broken.

Tell the nix-gaming people to fix it.

1 Like

thank you very much!

It’s not a commit, but it’s a valid hash.

# git show fdcdd095f3b721485bee6c4b61f101e52aeecc88
tag v2.6.1
Tagger: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Date:   Mon Apr 7 13:12:22 2025 +0200

Version 2.6.1
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEJz0EC1ETuIbRoJDUyMxhNCejHJkFAmfzsxkACgkQyMxhNCej
HJltVQgAp1510rA6oVQHNQnIpgScObie8tpyHzIpJPN2kyvpZ6BlPWXNhK6MkvwN
ZlsM/6MS8ess2r3H/HtazYfI7TppXgRf6ZZP4tRW9zZ/q8O5HjKrYiLTWhjwtOxW
8jZ1z4zTC7e0OrevNplkSr6PemE0vrEkw61JmiF4Pb+DyiOH1UxUgfM1N3+q3pdq
3IQHGvkcXtxHEJuoodl6uDMCho9cSc2DZYbdtdHDcRpJYkRxxhYC2EXIySiLHhhC
lUisalxF+A/Ukc9vytRbLCLyvfOYg8WHqp5eIsJymJp8WiSMNC93kTIQ+ki00jmz
BcWQaHZLA22ueQBVL599QuMcdx56BQ==
=Odxc
-----END PGP SIGNATURE-----

commit 2b1a284f8453baa2bd193709b67e5183074c74ba (HEAD, tag: v2.6.1)
Author: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Date:   Mon Apr 7 12:23:19 2025 +0200

    [meta] Release 2.6.1

diff --git a/RELEASE b/RELEASE
index 5154b3f6..6a6a3d8e 100644
--- a/RELEASE
+++ b/RELEASE
@@ -1 +1 @@
-2.6
+2.6.1
diff --git a/meson.build b/meson.build
index 26afed45..70d824f0 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('dxvk', ['c', 'cpp'], version : '2.6.0', meson_version : '>= 0.58', default_options : [ 'cpp_std=c++17', 'b_vscrt=static_from_buildtype', 'warning_level=2' ])
+project('dxvk', ['c', 'cpp'], version : '2.6.1', meson_version : '>= 0.58', default_options : [ 'cpp_std=c++17', 'b_vscrt=static_from_buildtype', 'warning_level=2' ])
 
 pkg = import('pkgconfig')
 cpu_family = target_machine.cpu_family()
diff --git a/src/dxvk/dxvk_instance.cpp b/src/dxvk/dxvk_instance.cpp
index 89883b10..dfd48127 100644
--- a/src/dxvk/dxvk_instance.cpp
+++ b/src/dxvk/dxvk_instance.cpp
@@ -184,7 +184,7 @@ namespace dxvk {
       appInfo.pApplicationName      = appName.c_str();
       appInfo.applicationVersion    = flags.raw();
       appInfo.pEngineName           = "DXVK";
-      appInfo.engineVersion         = VK_MAKE_API_VERSION(0, 2, 6, 0);
+      appInfo.engineVersion         = VK_MAKE_API_VERSION(0, 2, 6, 1);
       appInfo.apiVersion            = VK_MAKE_API_VERSION(0, 1, 3, 0);
 
       VkInstanceCreateInfo info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO };

okay, but, still it breaks my NixOS from rebuilding, how comes nix-gaming maintainers aren’t hitting the same problem as I do?