2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchFromGitHub
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "svg2pdf";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.11.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "typst";
|
|
|
|
repo = "svg2pdf";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-gSXztee8tly8nNhcC4QcloOAgVpenWszg12w3thzKJ8=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-PaAhTSfw+enirVg9WHBpI+GjMwHA02/SiKkRa1A6QXc=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
cargoBuildFlags = [
|
|
|
|
"-p=svg2pdf-cli"
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert SVG files to PDFs";
|
|
|
|
homepage = "https://github.com/typst/svg2pdf";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/typst/svg2pdf/releases/tag/${src.rev}";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
maintainers = with maintainers; [ doronbehar figsoda ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "svg2pdf";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
}
|