mirror of
https://git.adityakumar.xyz/dsa.git
synced 2024-11-21 09:42:52 +00:00
23 lines
521 B
Nix
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";
|
|
};
|
|
};
|
|
}
|