qtile: restore derivation name

This commit is contained in:
Jonathan Ringer 2021-08-24 20:42:00 -07:00 committed by Jonathan Ringer
parent b5f2c5f132
commit 4ffe91a29d

View file

@ -10,7 +10,7 @@ let
pythonPackages = python.pkgs;
unwrapped = pythonPackages.buildPythonPackage rec {
name = "qtile-${version}";
pname = "qtile";
version = "0.18.0";
src = fetchFromGitHub {
@ -61,6 +61,8 @@ let
};
in
(python.withPackages (ps: [ unwrapped ])).overrideAttrs (_: {
# otherwise will be exported as "env", this restores `nix search` behavior
name = "${unwrapped.pname}-${unwrapped.version}";
# export underlying qtile package
passthru = { inherit unwrapped; };
})