From 450d420811f6474cb16126889fd2f385924d35f1 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Fri, 7 Oct 2022 10:10:24 +0100 Subject: hy: fix passthru.withPackages In the previous version it was adding the extra packages as `propagatedBuildInputs`. This meant that this package would be rebuild for no reason (it is not like the package will actually depend on the extra inputs) and also cause the strange side-effect of creating a hy package without its console entry-points (e.g.: no `$out/bin` contents). Now we are reusing the `python.withPackages` that will avoid the unnecessary rebuild, fixing both issues. --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/top-level') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 46799a97345a6..0b8db8b1809b3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -37099,7 +37099,7 @@ with pkgs; simplenote = callPackage ../applications/misc/simplenote { }; - hy = python3Packages.hy.withPackages (python-packages: [ ]); + hy = with python3Packages; toPythonApplication hy; wmic-bin = callPackage ../servers/monitoring/plugins/wmic-bin.nix { }; -- cgit 1.4.1