dsa/flake.nix
2024-05-28 07:37:03 +05:30

23 lines
521 B
Nix

{
description = "A flake for publishing DSA stuff to https://dsa.adityakumar.xyz/";
inputs.nixpkgs.url = "github:nixos/nixpkgs";
outputs = {
self,
nixpkgs,
}: {
packages.x86_64-linux.default = with import nixpkgs {system = "x86_64-linux";};
stdenv.mkDerivation {
name = "dsa";
buildInputs = with pkgs; [
bash
hugo
rsync
];
src = self;
buildPhase = "hugo server -D";
installPhase = "bash deploy.sh";
};
};
}