diff --git a/pkgs/by-name/ty/typst/wrapper.nix b/pkgs/by-name/ty/typst/wrapper.nix index e7966787195c..16fe2734a4ae 100644 --- a/pkgs/by-name/ty/typst/wrapper.nix +++ b/pkgs/by-name/ty/typst/wrapper.nix @@ -17,9 +17,7 @@ lib.makeOverridable ( inherit (typst) meta; name = "${typst.name}-env"; - paths = lib.foldl' (acc: p: acc ++ lib.singleton p ++ p.propagatedBuildInputs) [ ] ( - packages typstPkgs - ); + paths = lib.closePropagation (packages typstPkgs); pathsToLink = [ "/lib/typst-packages" ];