Merge pull request #191914 from doronbehar/pkg/svg2pdf
This commit is contained in:
commit
e3ed3a87e7
2 changed files with 29 additions and 0 deletions
27
pkgs/tools/graphics/svg2pdf/default.nix
Normal file
27
pkgs/tools/graphics/svg2pdf/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue