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