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

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

28 lines
702 B
Nix
Raw Normal View History

2022-09-19 12:13:22 +00:00
{ lib
, stdenv
, fetchCrate
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "svg2pdf";
2023-01-01 14:14:31 +00:00
version = "0.4.1";
2022-09-19 12:13:22 +00:00
# This cargo package is usually a library, hence it does not track a
# Cargo.lock by default so we use fetchCrate
src = fetchCrate {
inherit version pname;
2023-01-01 14:14:31 +00:00
sha256 = "sha256-0sjJIHD+x9P7FPLNwTXYcetbU4Ck5K4pFGF5cMI3+rk=";
2022-09-19 12:13:22 +00:00
};
2023-01-01 14:14:31 +00:00
cargoSha256 = "sha256-vjDV604HDwlaxwq5iQbGOKXmLTRgx1oZ824HXBSiouw=";
2022-09-19 12:13:22 +00:00
buildFeatures = [ "cli" ];
doCheck = true;
meta = with lib; {
description = "Convert SVG files to PDFs";
homepage = "https://github.com/typst/svg2pdf";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ doronbehar ];
};
}