commit 27288ca8611f5e8628ea1a842d6612cba61544c4
parent ca5406f39d4fbea27f5e1b4f971261e16741fc73
Author: Chris <chris@echoz.io>
Date: Fri, 8 May 2026 14:43:00 +0200
chore: build with nix
Diffstat:
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/flake.nix b/flake.nix
@@ -1,5 +1,6 @@
{
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
+ inputs.self.submodules = true;
outputs =
{ nixpkgs, ... }:
@@ -17,6 +18,23 @@
forAllSystems = f: lib.genAttrs systems (system: f (argsFor system));
in
{
+ packages = forAllSystems (
+ { pkgs, ... }:
+ {
+ default = pkgs.stdenv.mkDerivation {
+ name = "lpk-website";
+ src = ./.;
+ nativeBuildInputs = [ pkgs.hugo ];
+ buildPhase = ''
+ runHook preBuild
+ hugo --minify --gc --destination $out
+ runHook postBuild
+ '';
+ dontInstall = true;
+ };
+ }
+ );
+
devShells = forAllSystems (
{ pkgs, ... }:
{