mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
refactor(nix): remove other with lib;
This commit is contained in:
parent
b1254cb0fb
commit
96f0c82ade
1 changed files with 4 additions and 2 deletions
|
|
@ -23,8 +23,10 @@
|
||||||
, zoxide
|
, zoxide
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
||||||
let
|
let
|
||||||
runtimePaths = with lib; optional withFile file
|
inherit (lib) optional makeBinPath;
|
||||||
|
runtimePaths = optional withFile file
|
||||||
++ optional withJq jq
|
++ optional withJq jq
|
||||||
++ optional withPoppler poppler_utils
|
++ optional withPoppler poppler_utils
|
||||||
++ optional withUnar unar
|
++ optional withUnar unar
|
||||||
|
|
@ -44,5 +46,5 @@ runCommand yazi-unwrapped.name
|
||||||
ln -s ${yazi-unwrapped}/share $out/share
|
ln -s ${yazi-unwrapped}/share $out/share
|
||||||
ln -s ${yazi-unwrapped}/bin/ya $out/bin/ya
|
ln -s ${yazi-unwrapped}/bin/ya $out/bin/ya
|
||||||
makeWrapper ${yazi-unwrapped}/bin/yazi $out/bin/yazi \
|
makeWrapper ${yazi-unwrapped}/bin/yazi $out/bin/yazi \
|
||||||
--prefix PATH : "${lib.makeBinPath runtimePaths}"
|
--prefix PATH : "${makeBinPath runtimePaths}"
|
||||||
''
|
''
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue