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.
31 lines
493 B
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
|
|
'';
|
|
}
|
|
|