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

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

27 lines
692 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.7.1";
src = fetchFromGitHub {
owner = "typst";
repo = "svg2pdf";
rev = "v${version}";
hash = "sha256-XTOGxuytbkaq4ZV6rXKJF9A/KSX6naYQ3kdICDQU4JA=";
2022-09-19 14:13:22 +02:00
};
cargoHash = "sha256-CQPkVJ3quQlnIS05tAj+i7kGk2l0RvGM/FRNvgQ0mHM=";
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";
changelog = "https://github.com/typst/svg2pdf/releases/tag/${src.rev}";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ doronbehar figsoda ];
2022-09-19 14:13:22 +02:00
};
}