Integrate previously external templates into this repository #12
10
flake.nix
10
flake.nix
|
@ -27,6 +27,16 @@
|
|||
templates = flakeOutputs.templates.packages.${system}.default;
|
||||
};
|
||||
|
||||
apps.${system}.default = let
|
||||
inherit (self.packages.${system}) server templates;
|
||||
inherit (nixpkgs.legacyPackages.${system}) writeShellScript;
|
||||
in {
|
||||
type = "app";
|
||||
program = builtins.toString (writeShellScript "tlaternet-webserver" ''
|
||||
${server}/bin/tlaternet-webserver --template-directory ${templates}
|
||||
'');
|
||||
};
|
||||
|
||||
devShells.${system} = {
|
||||
templates = flakeOutputs.templates.devShells.${system}.default.overrideAttrs (old: {
|
||||
buildInputs = with nixpkgs.legacyPackages.${system};
|
||||
|
|
Loading…
Reference in a new issue