refactor(nix): remove other with lib;

This commit is contained in:
uncenter 2024-07-31 15:11:47 -04:00
parent b1254cb0fb
commit 96f0c82ade
No known key found for this signature in database

View file

@ -23,8 +23,10 @@
, zoxide
}:
let
runtimePaths = with lib; optional withFile file
inherit (lib) optional makeBinPath;
runtimePaths = optional withFile file
++ optional withJq jq
++ optional withPoppler poppler_utils
++ optional withUnar unar
@ -44,5 +46,5 @@ runCommand yazi-unwrapped.name
ln -s ${yazi-unwrapped}/share $out/share
ln -s ${yazi-unwrapped}/bin/ya $out/bin/ya
makeWrapper ${yazi-unwrapped}/bin/yazi $out/bin/yazi \
--prefix PATH : "${lib.makeBinPath runtimePaths}"
--prefix PATH : "${makeBinPath runtimePaths}"
''