writeShellApplication: set meta.mainProgram
This commit is contained in:
parent
ba7b7357ac
commit
174995d14f
1 changed files with 10 additions and 7 deletions
|
@ -292,13 +292,16 @@ rec {
|
||||||
${text}
|
${text}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = if checkPhase == null then ''
|
checkPhase =
|
||||||
|
if checkPhase == null then ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
${stdenv.shell} -n $out/bin/${name}
|
${stdenv.shell} -n $out/bin/${name}
|
||||||
${shellcheck}/bin/shellcheck $out/bin/${name}
|
${shellcheck}/bin/shellcheck $out/bin/${name}
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
''
|
''
|
||||||
else checkPhase;
|
else checkPhase;
|
||||||
|
|
||||||
|
meta.mainProgram = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Create a C binary
|
# Create a C binary
|
||||||
|
|
Loading…
Reference in a new issue