{ description = "A site in nix?"; outputs = { self, nixpkgs, }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; nixite = import ./nixite/. { inherit pkgs; }; in nixite // { packages.${system} = { raw = nixite.mkSite (nixite.site.applyStyle ./testing/src/style.css (nixite.site.extractPaths { "test" = with nixite.elems; (Doc [ [ (title "Nixite") (nixite.html.tag "link" { rel = "shortcut icon"; type = "image/png"; href = ./testing/src/favicon.png; } "") (a "/readme" "Readme") ] (main [ (a "/blog" "blog") (List [ "item 1" "item 2" "item 3" ]) ]) ]); blog = nixite.md.readDir ./testing/blog; "index.html" = nixite.md.mdToPage ./README.md; })); default = nixite.serve self.packages.${system}.raw; test = let run = import ./testing/run.nix pkgs; in run [ #./testing/md.test.nix ./testing/html.test.nix #./testing/elems.test.nix #./testing/site.test.nix ./testing/style.test.nix ]; }; }; }