mirror of
https://git.adityakumar.xyz/adityakumar.xyz.git
synced 2024-09-07 21:10:40 +00:00
21 lines
524 B
Nix
21 lines
524 B
Nix
{
|
|
description = "A flake for publishing blog posts to https://blog.adityakumar.xyz/";
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/23.05";
|
|
|
|
outputs = { self, nixpkgs }: {
|
|
packages.x86_64-linux.default = with import nixpkgs { system = "x86_64-linux"; };
|
|
stdenv.mkDerivation {
|
|
name = "adityakumar.xyz";
|
|
buildInputs = [
|
|
pkgs.hugo
|
|
pkgs.rsync
|
|
pkgs.nodejs
|
|
];
|
|
src = self;
|
|
buildPhase = "hugo server";
|
|
installPhase = "./deploy.sh";
|
|
};
|
|
};
|
|
}
|