This repository has been archived on 2024-05-15. You can view files and clone it, but cannot push or open issues or pull requests.
blog/flake.nix

21 lines
634 B
Nix
Raw Normal View History

2023-11-23 13:09:16 +00:00
{
description = "My personal website content and configuration";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
packages.website = pkgs.stdenv.mkDerivation {
name = "homesite";
src = self;
buildPhase = "${pkgs.hugo}/bin/hugo";
installPhase = "cp -r public $out";
};
packages.default = self.packages.${system}.website;
2023-11-23 13:09:16 +00:00
devShells.default = pkgs.mkShell { packages = [ pkgs.hugo ]; };
});
}