Add overlay
This commit is contained in:
parent
a58812f74a
commit
df18811cb3
1 changed files with 15 additions and 11 deletions
26
flake.nix
26
flake.nix
|
@ -31,6 +31,18 @@
|
|||
inherit system;
|
||||
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 {
|
||||
formatter = pkgs.alejandra;
|
||||
devShells.default = let
|
||||
|
@ -46,17 +58,9 @@
|
|||
inherit commands;
|
||||
devshell.startup.themes.text = startupScript;
|
||||
};
|
||||
packages.default = 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";
|
||||
packages.default = pkg;
|
||||
overlays.default = final: prev: {
|
||||
www = pkg;
|
||||
};
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue