nixpkgs/pkgs/tools/graphics/svg2pdf/default.nix

32 lines
742 B
Nix
Raw Normal View History

2022-09-19 14:13:22 +02:00
{ lib
, rustPlatform
, fetchFromGitHub
2022-09-19 14:13:22 +02:00
}:
rustPlatform.buildRustPackage rec {
pname = "svg2pdf";
version = "0.9.1";
src = fetchFromGitHub {
owner = "typst";
repo = "svg2pdf";
rev = "v${version}";
hash = "sha256-mWj9zWxqcJ+5VFYSaeNLxClWdOGd34JboZBwT8E75Ew=";
2022-09-19 14:13:22 +02:00
};
cargoHash = "sha256-zP448dFnkoPca/GJA2kT5ht1fVGkWN0XdaKEePJaloQ=";
cargoBuildFlags = [
"-p=svg2pdf-cli"
];
2022-09-19 14:13:22 +02:00
meta = with lib; {
description = "Convert SVG files to PDFs";
homepage = "https://github.com/typst/svg2pdf";
changelog = "https://github.com/typst/svg2pdf/releases/tag/${src.rev}";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ doronbehar figsoda ];
2023-11-23 03:51:17 +01:00
mainProgram = "svg2pdf";
2022-09-19 14:13:22 +02:00
};
}