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

31 lines
493 B

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