depot/third_party/nixpkgs/pkgs/tools/graphics/svg2pdf/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

27 lines
702 B
Nix

{ lib
, stdenv
, fetchCrate
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "svg2pdf";
version = "0.4.1";
# 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 = "sha256-0sjJIHD+x9P7FPLNwTXYcetbU4Ck5K4pFGF5cMI3+rk=";
};
cargoSha256 = "sha256-vjDV604HDwlaxwq5iQbGOKXmLTRgx1oZ824HXBSiouw=";
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 ];
};
}