1 { lib, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-XjWkzTdsnQZfBjf61dgGt/a7973ZljJG1rnCk0iGk6Y=";
14 cargoHash = "sha256-HmMAYtL0qoUrtLRKrYx6VZsc0bVRS+DhIFweLbz9l+w=";
18 "--package=resvg-capi"
23 install -Dm644 -t $out/include crates/c-api/*.h
27 description = "SVG rendering library";
28 homepage = "https://github.com/RazrFalcon/resvg";
29 changelog = "https://github.com/RazrFalcon/resvg/blob/v${version}/CHANGELOG.md";
30 license = licenses.mpl20;
32 mainProgram = "resvg";