2021-03-15 08:37:03 +00:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, libiconv }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "resvg";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.21.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RazrFalcon";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-I0I6gb2jG0ZeEp6WwDipe43wuek43CWm0zGBX2hAros=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
cargoSha256 = "sha256-EdbyaVrHjjVUNmQM96VKCeU3ss1G/N4OZxFMLvFgRqY=";
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|