summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-05-30 15:10:38 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-05-30 15:10:38 -0500
commitc045a3dbd7054c94bf94cfd88581c6c8e82bd037 (patch)
tree67e8ff28c7c00b8ec162940f47c9b3dcac66cef7
parent185f1c4793c4664587da377e9950b50444fe8c7f (diff)
downloadnixos-config-c045a3dbd7054c94bf94cfd88581c6c8e82bd037.tar.gz
nixos-config-c045a3dbd7054c94bf94cfd88581c6c8e82bd037.zip
lib/thin-shim: Use `name' instead of `pname' and `version'
Since not all packages use `pname' and `version' yet, to get `mkThinShim' to work for all packages, we just use `name' now.
-rw-r--r--lib/thin-shim.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/thin-shim.nix b/lib/thin-shim.nix
index a9f931b..b226760 100644
--- a/lib/thin-shim.nix
+++ b/lib/thin-shim.nix
@@ -7,8 +7,11 @@ let
in
pkg: inst:
stdenv.mkDerivation {
- pname = pkg.pname + "-shim";
- version = pkg.version;
+ # I don't like using `name' instead of `pname' and `version', but
+ # regrettably not all packages use `pname' and `version' yet, so for the
+ # sake of consistency, we treat all packages as if they didn't use `pname'
+ # and `version'.
+ name = pkg.name + "-shim";
nativeBuildInputs = [pkg];
dontUnpack = true;
buildPhase = ''