Skip to content

Commit

Permalink
add meta.mainProgram to package
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Feb 4, 2025
1 parent 91f8e52 commit 858f27f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ in {
restartIfChanged = false;
serviceConfig = {
ExecStart =
"${package}/bin/comin "
(lib.getExe package)
+ (lib.optionalString cfg.services.comin.debug "--debug ")
+ " run "
+ "--config ${cominConfigYaml}";
Expand Down
4 changes: 4 additions & 0 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ buildGoModule rec {
# This is because Nix needs Git at runtime by the go-git library
wrapProgram $out/bin/comin --set GIT_CONFIG_SYSTEM ${gitConfigFile} --prefix PATH : ${git}/bin
'';

meta = {
mainProgram = "comin";
};
}

0 comments on commit 858f27f

Please sign in to comment.