diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-05-30 15:10:38 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-05-30 15:10:38 -0500 |
commit | c045a3dbd7054c94bf94cfd88581c6c8e82bd037 (patch) | |
tree | 67e8ff28c7c00b8ec162940f47c9b3dcac66cef7 /lib/thin-shim.nix | |
parent | 185f1c4793c4664587da377e9950b50444fe8c7f (diff) | |
download | nixos-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.
Diffstat (limited to 'lib/thin-shim.nix')
-rw-r--r-- | lib/thin-shim.nix | 7 |
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 = '' |