flake: add package output

This commit is contained in:
b12f 2024-08-24 21:09:33 +02:00
parent 66447e4c31
commit d6302f9e39
Signed by: b12f
GPG key ID: 729956E1124F8F26
2 changed files with 16 additions and 14 deletions

View file

@ -14,21 +14,10 @@ site.use(date());
site.use(jsx());
site.use(terser());
site.use(postcss());
site.copy("assets");
site.loadAssets([
".png",
".jpg",
".svg",
".pdf",
".woff2",
".woff",
".ttf",
".otf",
".js",
".mjs",
".txt",
".mp4",
]);
site.loadAssets([ ".js", ".mjs" ]);
site.ignore("README.md", "CHANGELOG.md", "LICENSE.md");

View file

@ -16,6 +16,19 @@
inherit self nixpkgs;
name = "mezza.biz";
preOverlays = [ devshell.overlays.default ];
overlay = final: prev: {
mezza-biz = prev.stdenv.mkDerivation {
name = "mezza.biz";
version = "0.0.1";
src = ./.;
installPhase = ''
${nixpkgs.deno}/bin/deno task build
mkdir -p $out
cp -r _site/* $out/
cp -r _site/.* $out/
'';
};
};
shell = { pkgs }:
pkgs.devshell.mkShell {
# Add additional packages you'd like to be available in your devshell