sequence of actions, and arguments, in app
or package
#330
Answered
by
shivaraj-bh
peterbecich
asked this question in
Q&A
-
I have the Right now starting the server requires some steps:
How can I write an Presently
I'm aware of Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
shivaraj-bh
Jun 22, 2024
Replies: 1 comment 5 replies
-
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}”;
};
} |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
peterbecich
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should do the job: