refactor: writeFishApplication body
This commit is contained in:
parent
84934c6cd6
commit
fc91521270
1 changed files with 3 additions and 7 deletions
|
@ -18,10 +18,8 @@ with final.lib;
|
|||
preferLocalBuild = false;
|
||||
text = ''
|
||||
#!${getExe final.fish}
|
||||
'' + optionalString (runtimeInputs != [ ]) ''
|
||||
|
||||
export PATH="${makeBinPath runtimeInputs}:$PATH"
|
||||
'' + ''
|
||||
${optionalString (runtimeInputs != [ ]) ''export PATH="${makeBinPath runtimeInputs}:$PATH"''}
|
||||
|
||||
${content}
|
||||
'';
|
||||
|
@ -35,9 +33,7 @@ with final.lib;
|
|||
else checkPhase;
|
||||
};
|
||||
|
||||
|
||||
script = fishFile "/bin/${name}" text;
|
||||
|
||||
completions_file = fishFile "/share/fish/vendor_completions.d/${name}.fish" completions;
|
||||
in
|
||||
final.symlinkJoin {
|
||||
|
|
Loading…
Reference in a new issue