Skip to content

Commit

Permalink
fix: bwrap not installing the overlayed package
Browse files Browse the repository at this point in the history
  • Loading branch information
shiryel committed Oct 22, 2023
1 parent 20ac05c commit f7128b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixjail.nix
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ with my_lib;
# list of packages names for the `environment.systemPackages` attr
(if install then
pipe (packages cfg.pkgs cfg.pkgs) [
(mapAttrsToList (_package_name: package: package))
# we need to use cfg.pkgs."${package_name}" because _package would be the
# version BEFORE the overlay IF the package_name is not the same attr as _package
(mapAttrsToList (package_name: _package: cfg.pkgs."${package_name}"))
]
else
[ ]))
Expand Down

0 comments on commit f7128b5

Please sign in to comment.