refactor: writeFishApplication body

This commit is contained in:
Moritz Böhme 2023-08-26 11:45:58 +02:00
parent 84934c6cd6
commit fc91521270
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -18,13 +18,11 @@ with final.lib;
preferLocalBuild = false;
text = ''
#!${getExe final.fish}
'' + optionalString (runtimeInputs != [ ]) ''
export PATH="${makeBinPath runtimeInputs}:$PATH"
'' + ''
${optionalString (runtimeInputs != [ ]) ''export PATH="${makeBinPath runtimeInputs}:$PATH"''}
${content}
'';
${content}
'';
checkPhase =
if checkPhase == null then ''
@ -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 {