{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11-small"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; buildInputs = with pkgs; [ hugo nodejs ]; in with pkgs; { devShells.default = mkShell { inherit buildInputs; }; packages.default = stdenvNoCC.mkDerivation { name = "millironx-pages"; src = self; inherit buildInputs; phases = [ "unpackPhase" "buildPhase" "installPhase" ]; buildPhase = '' runHook preBuild HUGO_ENV=production HUGO_ENVIRONMENT=production hugo --minify runHook postBuild ''; installPhase = '' runHook preInstall mkdir -p $out cp -r public/* $out/ runHook postInstall ''; }; }); }