2022-09-19 14:13:22 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-09-13 15:04:18 +02:00
|
|
|
, fetchFromGitHub
|
2022-09-19 14:13:22 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "svg2pdf";
|
2023-10-05 00:06:24 +02:00
|
|
|
version = "0.8.0";
|
2023-09-13 15:04:18 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "typst";
|
|
|
|
repo = "svg2pdf";
|
|
|
|
rev = "v${version}";
|
2023-10-05 00:06:24 +02:00
|
|
|
hash = "sha256-iN6/VO6EMP9wMoTn4t0y1Oq9XP9Q3UcRNCWsMzI4Fn8=";
|
2022-09-19 14:13:22 +02:00
|
|
|
};
|
2023-10-05 00:06:24 +02:00
|
|
|
cargoHash = "sha256-Xxb8DeTAmw0Pq4mrLVcpEuzq7/SX+AlUSWoA2dcVQJA=";
|
2022-09-19 14:13:22 +02:00
|
|
|
buildFeatures = [ "cli" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert SVG files to PDFs";
|
|
|
|
homepage = "https://github.com/typst/svg2pdf";
|
2023-09-13 15:04:18 +02:00
|
|
|
changelog = "https://github.com/typst/svg2pdf/releases/tag/${src.rev}";
|
2023-09-13 15:05:27 +02:00
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
maintainers = with maintainers; [ doronbehar figsoda ];
|
2022-09-19 14:13:22 +02:00
|
|
|
};
|
|
|
|
}
|