nixpkgs/pkgs/tools/graphics/resvg/default.nix

28 lines
745 B
Nix
Raw Normal View History

2021-03-13 12:28:00 +00:00
{ stdenv, lib, rustPlatform, fetchFromGitHub, libiconv }:
2020-10-14 04:20:00 +00:00
rustPlatform.buildRustPackage rec {
pname = "resvg";
2021-10-23 03:28:10 +00:00
version = "0.19.0";
2020-10-14 04:20:00 +00:00
src = fetchFromGitHub {
owner = "RazrFalcon";
repo = pname;
rev = "v${version}";
2021-10-23 03:28:10 +00:00
sha256 = "15q88ix5800wmqq6nbmnw0gxk0sx1k9iqv1fvy5kcbgcj65acvwx";
2020-10-14 04:20:00 +00:00
};
2021-10-23 03:28:10 +00:00
cargoSha256 = "0dlap5db8wvghaqzqbm7q3k38xvncdikq0y9gc55w5hzic63khbx";
2020-10-14 04:20:00 +00:00
2021-03-13 12:28:00 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
2020-10-14 04:20:00 +00:00
doCheck = false;
meta = with lib; {
description = "An SVG rendering library";
homepage = "https://github.com/RazrFalcon/resvg";
2021-03-13 12:28:00 +00:00
changelog = "https://github.com/RazrFalcon/resvg/raw/v${version}/CHANGELOG.md";
2020-10-14 04:20:00 +00:00
license = licenses.mpl20;
maintainers = [ maintainers.marsam ];
};
}