From df18811cb3f91d2661b583bd62e310064b2c257b Mon Sep 17 00:00:00 2001 From: Avery Winters Date: Thu, 14 Sep 2023 15:12:22 -0500 Subject: [PATCH] Add overlay --- flake.nix | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 898d552..c455265 100644 --- a/flake.nix +++ b/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; }; })); }