mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
writeShellApplication: set meta.mainProgram
This commit is contained in:
parent
ba7b7357ac
commit
174995d14f
@ -292,13 +292,16 @@ rec {
|
|||||||
${text}
|
${text}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = if checkPhase == null then ''
|
checkPhase =
|
||||||
runHook preCheck
|
if checkPhase == null then ''
|
||||||
${stdenv.shell} -n $out/bin/${name}
|
runHook preCheck
|
||||||
${shellcheck}/bin/shellcheck $out/bin/${name}
|
${stdenv.shell} -n $out/bin/${name}
|
||||||
runHook postCheck
|
${shellcheck}/bin/shellcheck $out/bin/${name}
|
||||||
''
|
runHook postCheck
|
||||||
else checkPhase;
|
''
|
||||||
|
else checkPhase;
|
||||||
|
|
||||||
|
meta.mainProgram = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Create a C binary
|
# Create a C binary
|
||||||
|
Loading…
Reference in New Issue
Block a user