Merge pull request #191914 from doronbehar/pkg/svg2pdf

This commit is contained in:
Doron Behar 2022-09-24 18:31:25 +00:00 committed by GitHub
commit e3ed3a87e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

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