From d398f95f1e9108f18c7dbe45423c71ccf52497c4 Mon Sep 17 00:00:00 2001 From: Mel Bourgeois Date: Fri, 14 Mar 2025 17:15:59 -0500 Subject: [PATCH] nixgl: use original package name Some Home Manager modules depend on the name, so changing it in the wrapper can break them. --- modules/misc/nixgl.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/misc/nixgl.nix b/modules/misc/nixgl.nix index 1a99228a7..e1a099ec0 100644 --- a/modules/misc/nixgl.nix +++ b/modules/misc/nixgl.nix @@ -217,7 +217,10 @@ in # Wrap the package's binaries with nixGL, while preserving the rest of # the outputs and derivation attributes. (pkg.overrideAttrs (old: { - name = "nixGL-${pkg.name}"; + # Leave the name unchanged and rely on the hash to differentiate + # from the original package. Some modules rely on the package name + # to e.g. compute config directory paths. + name = pkg.name; # Make sure this is false for the wrapper derivation, so nix doesn't expect # a new debug output to be produced. We won't be producing any debug info