From c045a3dbd7054c94bf94cfd88581c6c8e82bd037 Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Fri, 30 May 2025 15:10:38 -0500 Subject: 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. --- lib/thin-shim.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/thin-shim.nix') 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 = '' -- cgit v1.2.3