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.
27 lines
383 B
27 lines
383 B
4 years ago
|
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
|
||
|
'';
|
||
|
}
|