all repos — homestead @ 1cff9fe28fa18e219e0046a4e61fd1403d8774d0

Code for my website

Make buildable with nix (requires submodule workaround)

Alan Pearce
commit

1cff9fe28fa18e219e0046a4e61fd1403d8774d0

parent

47a42c50b5a2f9282d45a1d3555b45921e970f10

1 file changed, 19 insertions(+), 9 deletions(-)

changed files
M flake.nixflake.nix
@@ -9,15 +9,25 @@ let
pkgs = nixpkgs.legacyPackages.${system}; in { - devShells.default = pkgs.mkShell { - packages = with pkgs; [ - brotli - gzip - zstd - gnugrep - git - zola - ]; + packages = { + default = pkgs.stdenv.mkDerivation { + name = "alanpearce.eu"; + src = self; + + enableParallelBuilding = true; + makeFlags = [ "PREFIX=$(out)" ]; + + nativeBuildInputs = with pkgs; [ + zola + fd + brotli + gzip + zstd + git + ]; + + dontFixup = true; + }; }; }); }