flake: add package output
This commit is contained in:
parent
66447e4c31
commit
d6302f9e39
17
_config.ts
17
_config.ts
|
@ -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");
|
||||
|
||||
|
|
13
flake.nix
13
flake.nix
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue