nixpkgs/pkgs/by-name/sv/svg2pdf/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
743 B
Nix
Raw Normal View History

2022-09-19 12:13:22 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
2022-09-19 12:13:22 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "svg2pdf";
2024-10-03 21:06:26 +00:00
version = "0.12.0";
src = fetchFromGitHub {
owner = "typst";
repo = "svg2pdf";
rev = "v${version}";
2024-10-03 21:06:26 +00:00
hash = "sha256-9v4A0mZjknc6a933b3ifPJo3xyem17Vpp0Wu0sUS0DM=";
2022-09-19 12:13:22 +00:00
};
2024-10-03 21:06:26 +00:00
cargoHash = "sha256-oCyvssTtUr8FR0XaFx2syxE8+zWXOGrf8kvQiBCyq18=";
cargoBuildFlags = [
"-p=svg2pdf-cli"
];
2022-09-19 12:13:22 +00: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 02:51:17 +00:00
mainProgram = "svg2pdf";
2022-09-19 12:13:22 +00:00
};
}