blob: 03d372808664026aa2341b10e0c704c95d51b7c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ lib
, stdenv
, fetchCrate
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "svg2pdf";
version = "0.5.0";
# 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;
sha256 = "sha256-4n7aBVjXiVU7O7sOKN5eBrKZNYsKk8eDPdna9o7piJo=";
};
cargoHash = "sha256-5EEZoYvobbNOknwZWn71EDQSNPmYoegHoZW1Or8Xv2c=";
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 ];
};
}
|