Skip to content

Commit

Permalink
fix: use function from lib instead of builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Mar 6, 2024
1 parent ec0377a commit 13a3b13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nix/shell-plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ in {
# depending on if it's using `home-manager` or not; this means that Nix can still
# compute the dependency tree, even though we're discarding string context here,
# since the packages are still referred to below without discarding string context.
builtins.unsafeDiscardStringContext (baseNameOf (getExe package)))
cfg.plugins;
strings.unsafeDiscardStringContext (baseNameOf (getExe package))) cfg.plugins;
# Explanation:
# Map over `cfg.plugins` (the value of the `plugins` option provided by the user)
# and for each package specified, get the executable name, then create a shell alias
Expand Down

0 comments on commit 13a3b13

Please sign in to comment.