2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-08-04 22:07:22 +00:00
|
|
|
, fetchCrate
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "svg2pdf";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.6.0";
|
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-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-RZpJ2HNqO1y6ZQjxdd7LEH2yS5QyjSqQFuyU4BwFA+4=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
2023-08-22 20:05:09 +00:00
|
|
|
cargoHash = "sha256-wJr1K/PUewScGjVLBmg9lpDKyn5CIUK2zac9/+JvnbE=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|