zola: add patch for CVE-2023-40274

This commit is contained in:
Robert Scott 2023-09-24 19:53:26 +01:00
parent 05698bba1e
commit f54c698a92

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, rustPlatform
, cmake
, pkg-config
@ -26,6 +27,14 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-AAub8UwAvX3zNX+SM/T9biyNxFTgfqUQG/MUGfwWuno=";
patches = [
(fetchpatch {
name = "CVE-2023-40274.patch";
url = "https://github.com/getzola/zola/commit/fe1967fb0fe063b1cee1ad48820870ab2ecc0e5b.patch";
hash = "sha256-B/SVGhVX5hAbvMhBYO+mU5+xdZXU2JyS4uKmOj+aZuI=";
})
];
nativeBuildInputs = [
cmake
pkg-config