generate sitemap
This commit is contained in:
parent
f20726136b
commit
9b2f42e769
18
flake.nix
18
flake.nix
|
@ -15,12 +15,26 @@
|
||||||
with ps; [
|
with ps; [
|
||||||
markdown
|
markdown
|
||||||
(pelican.overrideAttrs (_: _: {patches = [./pelican.patch];}))
|
(pelican.overrideAttrs (_: _: {patches = [./pelican.patch];}))
|
||||||
|
(
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pelican-sitemap";
|
||||||
|
version = "1.1.0";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "pelican-plugins";
|
||||||
|
repo = "sitemap";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-GEOLM4wc25VLRZ4qpOENTV6YGfYPHeu95gGdBauJswA=";
|
||||||
|
};
|
||||||
|
format = "pyproject";
|
||||||
|
propagatedBuildInputs = [poetry-core];
|
||||||
|
}
|
||||||
|
)
|
||||||
]);
|
]);
|
||||||
website = pkgs.stdenv.mkDerivation {
|
website = pkgs.stdenv.mkDerivation {
|
||||||
name = "website";
|
name = "website";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
nativeBuildInputs = [python];
|
nativeBuildInputs = [pkgs.libfaketime python];
|
||||||
buildFlags = ["publish"];
|
buildPhase = "faketime @${builtins.toString self.lastModified} make publish";
|
||||||
installPhase = "cp -r output $out";
|
installPhase = "cp -r output $out";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in a new issue