diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-15 17:21:31 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-15 17:50:50 +0900 |
| commit | 9b3eb58a3f7a1b34d1140e82f8553ab16ffe0db1 (patch) | |
| tree | fc4e284a653cacb4079f7fdb531567413b3adf77 /flake.nix | |
| parent | dd44d349fc2ccd6075a00334e300b5c4636f6019 (diff) | |
all: update repository url
For the upcoming rename of security org to rosa.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -67,17 +67,25 @@ packages = forAllSystems ( system: let - inherit (self.packages.${system}) hakurei-static caddy-hakurei-static; + inherit (self.packages.${system}) static caddy; pkgs = nixpkgsFor.${system}; in { - default = caddy-hakurei-static; - hakurei-static = pkgs.callPackage ./package.nix { }; - caddy-hakurei-static = pkgs.writeShellScriptBin "caddy-hakurei-static" '' + default = caddy; + static = pkgs.callPackage ./package.nix { }; + dist = pkgs.runCommand "hakurei-static-${static.version}.tar.zst" { } '' + PATH="${pkgs.zstd}/bin:$PATH" \ + ${pkgs.gnutar}/bin/tar \ + -C '${static}' \ + --zstd \ + -cf \ + "$out" . + ''; + caddy = pkgs.writeShellScriptBin "caddy-hakurei-static" '' exec ${pkgs.caddy}/bin/caddy \ file-server \ -a -l ":49151" \ - -r ${hakurei-static} + -r ${static} ''; } ); |
