svg2pdf: init at 0.4.0

This commit is contained in:
Doron Behar 2022-09-19 15:13:22 +03:00
parent dcc27d13e6
commit 152aad4f85
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ lib
, stdenv
, fetchCrate
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "svg2pdf";
version = "0.4.0";
# This cargo package is usually a library, hence it does not track a
# Cargo.lock by default so we use fetchCrate
src = fetchCrate {
inherit version pname;
sha256 = "2Aw8VYFVw0rKeaDUTsYTHcHBDP1jLm4tVGfi6+RNK9E=";
};
cargoSha256 = "KADfBOnkY1T1xy4Oj7s85SXcDhjRhQQ2hWGWinMXux8=";
buildFeatures = [ "cli" ];
doCheck = true;
meta = with lib; {
description = "Convert SVG files to PDFs";
homepage = "https://github.com/typst/svg2pdf";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ doronbehar ];
};
}

View File

@ -15405,6 +15405,8 @@ with pkgs;
svg2tikz = python27Packages.svg2tikz;
svg2pdf = callPackage ../tools/graphics/svg2pdf { };
pew = callPackage ../development/tools/pew {};
poetry = callPackage ../development/tools/poetry2nix/poetry2nix/pkgs/poetry {