release: 0.0.0
All checks were successful
Static / Flake checks (push) Successful in 21s
Static / Create distribution (push) Successful in 55s
Release / Create release (push) Successful in 1m7s

This commit is contained in:
2025-06-27 20:48:06 +09:00
parent 394bf00ce1
commit 04cd9b5160
3 changed files with 34 additions and 8 deletions

View File

@@ -67,17 +67,17 @@
packages = forAllSystems (
system:
let
inherit (self.packages.${system}) hakurei-static hakurei-static-web-server;
inherit (self.packages.${system}) hakurei-static caddy-hakurei-static;
pkgs = nixpkgsFor.${system};
in
{
default = hakurei-static-web-server;
default = caddy-hakurei-static;
hakurei-static = pkgs.callPackage ./package.nix { };
hakurei-static-web-server = pkgs.writeShellScriptBin "hakurei-static-web-server" ''
exec ${pkgs.static-web-server}/bin/static-web-server \
-g info \
-p 49151 \
-d ${hakurei-static}
caddy-hakurei-static = pkgs.writeShellScriptBin "caddy-hakurei-static" ''
exec ${pkgs.caddy}/bin/caddy \
file-server \
-a -l ":49151" \
-r ${hakurei-static}
'';
}
);