depot/third_party/nixpkgs/pkgs/tools/graphics/svg2pdf/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

27 lines
688 B
Nix

{ 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 ];
};
}