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;
|
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";
|
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue