Skip to content

sequence of actions, and arguments, in app or package #330

Answered by shivaraj-bh
peterbecich asked this question in Q&A

You must be logged in to vote

This should do the job:

# Inside `perSystem`
{
  apps.default = {
    type = "app";
    program =
      let
        run-hackage-server = pkgs.writeShellApplication {
          name = "run-hackage-server";
          runtimeInputs = [ config.packages.default ];
          text = ''
            hackage-server init --static-dir=datafiles
            hackage-server run --static-dir=datafiles --base-uri=http://127.0.0.1:8080
          ‘';
        };
      in
      "${lib.getExe run-hackage-server};
  };
}

Replies: 1 comment 5 replies

You must be logged in to vote
5 replies
@peterbecich

@srid

srid Jun 22, 2024
Maintainer

@srid

srid Jun 22, 2024
Maintainer

@peterbecich

@srid

srid Jun 24, 2024
Maintainer

Answer selected by peterbecich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants