Merge pull request #234072 from ShamrockLee/write-script-bin-mainprogram
writeScriptBin, writeShellScriptBin: add meta.mainProgram automatically
This commit is contained in:
commit
2b54d69007
@ -230,7 +230,7 @@ rec {
|
|||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}";};
|
writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}"; meta.mainProgram = name;};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Similar to writeScript. Writes a Shell script and checks its syntax.
|
Similar to writeScript. Writes a Shell script and checks its syntax.
|
||||||
@ -288,6 +288,7 @@ rec {
|
|||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${stdenv.shellDryRun} "$target"
|
${stdenv.shellDryRun} "$target"
|
||||||
'';
|
'';
|
||||||
|
meta.mainProgram = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user