My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/infra/website/default.nix

26 lines
383 B

with import <nixpkgs> {};
stdenv.mkDerivation {
name = "website";
src = ./.;
buildInputs = with pkgs; [
python3
] ++ (with pkgs.python3Packages; [
pelican
markdown
webassets
]);
buildPhase = ''
runHook preBuild
make html
runHook postBuild
'';
installPhase = ''
runHook preInstall
mv output $out
runHook postInstall
'';
}