{ lib, rustPlatform, fetchFromGitHub }: rustPlatform.buildRustPackage rec { pname = "resvg"; version = "0.43.0"; src = fetchFromGitHub { owner = "RazrFalcon"; repo = pname; rev = "v${version}"; hash = "sha256-7JnNgTLpRo39EjYWchnfjGRfNgEwy5x4tUUzWT/d8h0="; }; cargoHash = "sha256-ok+Bqtc6YJoCRFis8JRmtKs1Jag04Ged2J4p4trI2ls="; cargoBuildFlags = [ "--package=resvg" "--package=resvg-capi" "--package=usvg" ]; postInstall = '' install -Dm644 -t $out/include crates/c-api/*.h ''; meta = with lib; { description = "SVG rendering library"; homepage = "https://github.com/RazrFalcon/resvg"; changelog = "https://github.com/RazrFalcon/resvg/blob/v${version}/CHANGELOG.md"; license = licenses.mpl20; maintainers = [ ]; mainProgram = "resvg"; }; }