blog/flake.nix

20 lines
493 B
Nix
Raw Normal View History

2023-06-07 12:20:29 +00:00
{
description = "A flake for publishing blog posts to https://blog.adityakumar.xyz/";
inputs.nixpkgs.url = "github:nixos/nixpkgs/23.05";
outputs = { self, nixpkgs }: {
2023-06-07 12:21:30 +00:00
packages.x86_64-linux.default = with import nixpkgs { system = "x86_64-linux"; };
2023-06-07 12:20:29 +00:00
stdenv.mkDerivation {
name = "blog";
buildInputs = [
pkgs.hugo
pkgs.rsync
];
src = self;
buildPhase = "hugo server";
2023-06-07 12:21:30 +00:00
installPhase = "./deploy.sh";
2023-06-07 12:20:29 +00:00
};
};
}