Add overlay

This commit is contained in:
Avery Winters 2023-09-14 15:12:22 -05:00
parent a58812f74a
commit df18811cb3
No known key found for this signature in database

View file

@ -31,6 +31,18 @@
inherit system; inherit system;
overlays = [devshell.overlays.default]; overlays = [devshell.overlays.default];
}; };
pkg = pkgs.stdenv.mkDerivation {
pname = "averywinters.org";
version = "1.0.0";
src = ./.;
nativeBuildInputs = [pkgs.zola];
configurePhase = ''
mkdir -p themes
ln -snf "${zerm}" "themes/zerm"
'';
buildPhase = "zola build";
installPhase = "cp -r public $out";
};
in { in {
formatter = pkgs.alejandra; formatter = pkgs.alejandra;
devShells.default = let devShells.default = let
@ -46,17 +58,9 @@
inherit commands; inherit commands;
devshell.startup.themes.text = startupScript; devshell.startup.themes.text = startupScript;
}; };
packages.default = pkgs.stdenv.mkDerivation { packages.default = pkg;
pname = "averywinters.org"; overlays.default = final: prev: {
version = "1.0.0"; www = pkg;
src = ./.;
nativeBuildInputs = [pkgs.zola];
configurePhase = ''
mkdir -p themes
ln -snf "${zerm}" "themes/zerm"
'';
buildPhase = "zola build";
installPhase = "cp -r public $out";
}; };
})); }));
} }