2021-03-13 13:28:00 +01:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, libiconv }:
|
2020-10-14 06:20:00 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "resvg";
|
2021-03-13 13:27:50 +01:00
|
|
|
version = "0.14.0";
|
2020-10-14 06:20:00 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RazrFalcon";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-13 13:27:50 +01:00
|
|
|
sha256 = "sha256-fd97w6yd9ZX2k8Vq+Vh6jouufGdFE02ZV8mb+BtA3tk=";
|
2020-10-14 06:20:00 +02:00
|
|
|
};
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "sha256-uP+YAJYZtMCUnLZWcwnoAw8E5cJeFxXx0qd2Li4byQM=";
|
2020-10-14 06:20:00 +02:00
|
|
|
|
2021-03-13 13:28:00 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
|
|
|
|
2020-10-14 06:20:00 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An SVG rendering library";
|
|
|
|
homepage = "https://github.com/RazrFalcon/resvg";
|
2021-03-13 13:28:00 +01:00
|
|
|
changelog = "https://github.com/RazrFalcon/resvg/raw/v${version}/CHANGELOG.md";
|
2020-10-14 06:20:00 +02:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|