2022-06-16 17:23:12 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "resvg";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.35.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RazrFalcon";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-iZY0t8GssM4doPnPiI+FdAdjmfXDxSUT7K9YUHBs8rQ=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-F7XeBto+vqfhucG7fygRkQWTQe7iwUuVyPTzdyXI7Lc=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
cargoBuildFlags = [
|
|
|
|
"--package=resvg"
|
|
|
|
"--package=resvg-capi"
|
|
|
|
"--package=usvg"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 -t $out/include crates/c-api/*.h
|
|
|
|
'';
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An SVG rendering library";
|
|
|
|
homepage = "https://github.com/RazrFalcon/resvg";
|
2021-03-15 08:37:03 +00:00
|
|
|
changelog = "https://github.com/RazrFalcon/resvg/raw/v${version}/CHANGELOG.md";
|
2020-10-16 20:44:37 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|