refactor: writeFishApplication body
parent
84934c6cd6
commit
fc91521270
|
@ -18,13 +18,11 @@ with final.lib;
|
||||||
preferLocalBuild = false;
|
preferLocalBuild = false;
|
||||||
text = ''
|
text = ''
|
||||||
#!${getExe final.fish}
|
#!${getExe final.fish}
|
||||||
'' + optionalString (runtimeInputs != [ ]) ''
|
|
||||||
|
|
||||||
export PATH="${makeBinPath runtimeInputs}:$PATH"
|
${optionalString (runtimeInputs != [ ]) ''export PATH="${makeBinPath runtimeInputs}:$PATH"''}
|
||||||
'' + ''
|
|
||||||
|
|
||||||
${content}
|
${content}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase =
|
checkPhase =
|
||||||
if checkPhase == null then ''
|
if checkPhase == null then ''
|
||||||
|
@ -35,9 +33,7 @@ with final.lib;
|
||||||
else checkPhase;
|
else checkPhase;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
script = fishFile "/bin/${name}" text;
|
script = fishFile "/bin/${name}" text;
|
||||||
|
|
||||||
completions_file = fishFile "/share/fish/vendor_completions.d/${name}.fish" completions;
|
completions_file = fishFile "/share/fish/vendor_completions.d/${name}.fish" completions;
|
||||||
in
|
in
|
||||||
final.symlinkJoin {
|
final.symlinkJoin {
|
||||||
|
|
Loading…
Reference in New Issue