2022-06-16 17:23:12 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "resvg";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.41.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RazrFalcon";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-plZiyEiBWeV2mwTsNK5Je8Axs/hcHH8aV2VpOix6QCY=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-U7xzb9e9wh9XbLvlYQ0ofIjH8FuSzVcrXnrehQmZgww=";
|
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";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/RazrFalcon/resvg/blob/v${version}/CHANGELOG.md";
|
2020-10-16 20:44:37 +00:00
|
|
|
license = licenses.mpl20;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2024-01-25 14:12:00 +00:00
|
|
|
mainProgram = "resvg";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|