diff --git a/pkgs/tools/graphics/resvg/default.nix b/pkgs/tools/graphics/resvg/default.nix index dd47a602a6f1..8d2f1a61b605 100644 --- a/pkgs/tools/graphics/resvg/default.nix +++ b/pkgs/tools/graphics/resvg/default.nix @@ -2,16 +2,26 @@ rustPlatform.buildRustPackage rec { pname = "resvg"; - version = "0.32.0"; + version = "0.33.0"; src = fetchFromGitHub { owner = "RazrFalcon"; repo = pname; rev = "v${version}"; - hash = "sha256-tbFRonljX/vH32/18yKs9qbs+spxLa1ZOQt2QTR8Z7o="; + hash = "sha256-x2lsEYPv6FtARdRd5r+vvV+/S4uZkRXPhsoXmplgIAM="; }; - cargoHash = "sha256-0SxFE6eMdVAU1wHvVLMClDk++Uf84InOISs1txXnIzo="; + cargoHash = "sha256-toUS1JAbJ8gbOsi87SXiqoaW0X7enAh4Iha3VeCa3WY="; + + cargoBuildFlags = [ + "--package=resvg" + "--package=resvg-capi" + "--package=usvg" + ]; + + postInstall = '' + install -Dm644 -t $out/include crates/c-api/*.h + ''; meta = with lib; { description = "An SVG rendering library";