From ab8f1f32f3cc373fa98067b5b547a4379030b38c Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 14 Oct 2020 04:20:00 +0000 Subject: [PATCH] resvg: init at 0.11.0 --- pkgs/tools/graphics/resvg/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/graphics/resvg/default.nix diff --git a/pkgs/tools/graphics/resvg/default.nix b/pkgs/tools/graphics/resvg/default.nix new file mode 100644 index 000000000000..ea6a75eb3a55 --- /dev/null +++ b/pkgs/tools/graphics/resvg/default.nix @@ -0,0 +1,24 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "resvg"; + version = "0.11.0"; + + src = fetchFromGitHub { + owner = "RazrFalcon"; + repo = pname; + rev = "v${version}"; + sha256 = "1qaca8wqwi2wqqx1yladjb4clgqdzsm8b7qsiaw0qascddjw1mcc"; + }; + + cargoSha256 = "1y10xzdf5kxbi9930qfsmryrbrkx1wmc5b216l9wcxq6cd77hxy2"; + + doCheck = false; + + meta = with lib; { + description = "An SVG rendering library"; + homepage = "https://github.com/RazrFalcon/resvg"; + license = licenses.mpl20; + maintainers = [ maintainers.marsam ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 81af27e78bbd..629c9c17be19 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6672,6 +6672,8 @@ in replace = callPackage ../tools/text/replace { }; + resvg = callPackage ../tools/graphics/resvg { }; + reckon = callPackage ../tools/text/reckon { }; recoverjpeg = callPackage ../tools/misc/recoverjpeg { };