writeShellApplication: set meta.mainProgram

This commit is contained in:
Bernardo Meurer
2021-11-08 09:33:42 -08:00
parent ba7b7357ac
commit 174995d14f
+10 -7
View File
@@ -292,13 +292,16 @@ rec {
${text}
'';
checkPhase = if checkPhase == null then ''
runHook preCheck
${stdenv.shell} -n $out/bin/${name}
${shellcheck}/bin/shellcheck $out/bin/${name}
runHook postCheck
''
else checkPhase;
checkPhase =
if checkPhase == null then ''
runHook preCheck
${stdenv.shell} -n $out/bin/${name}
${shellcheck}/bin/shellcheck $out/bin/${name}
runHook postCheck
''
else checkPhase;
meta.mainProgram = name;
};
# Create a C binary