2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "svg2pdf";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.4.1";
|
2022-09-30 11:47:45 +00:00
|
|
|
# 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;
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-0sjJIHD+x9P7FPLNwTXYcetbU4Ck5K4pFGF5cMI3+rk=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
2023-01-11 07:51:40 +00:00
|
|
|
cargoSha256 = "sha256-vjDV604HDwlaxwq5iQbGOKXmLTRgx1oZ824HXBSiouw=";
|
2022-09-30 11:47:45 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|