mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #254949 from figsoda/svg2pdf
svg2pdf: 0.6.0 -> 0.7.0
This commit is contained in:
commit
f630c28c3e
@ -1,26 +1,26 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchCrate
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "svg2pdf";
|
pname = "svg2pdf";
|
||||||
version = "0.6.0";
|
version = "0.7.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-RZpJ2HNqO1y6ZQjxdd7LEH2yS5QyjSqQFuyU4BwFA+4=";
|
|
||||||
};
|
|
||||||
cargoHash = "sha256-wJr1K/PUewScGjVLBmg9lpDKyn5CIUK2zac9/+JvnbE=";
|
|
||||||
buildFeatures = [ "cli" ];
|
|
||||||
|
|
||||||
doCheck = true;
|
src = fetchFromGitHub {
|
||||||
|
owner = "typst";
|
||||||
|
repo = "svg2pdf";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-X5L3UA/BJw8M2G35biCQjExYe68fB14meW4ILPEyesc=";
|
||||||
|
};
|
||||||
|
cargoHash = "sha256-zR4nKzbbCzSM1JVxj3nk6yQAfpPmfVQGabkU7lzLAi0=";
|
||||||
|
buildFeatures = [ "cli" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Convert SVG files to PDFs";
|
description = "Convert SVG files to PDFs";
|
||||||
homepage = "https://github.com/typst/svg2pdf";
|
homepage = "https://github.com/typst/svg2pdf";
|
||||||
license = with licenses; [ asl20 ];
|
changelog = "https://github.com/typst/svg2pdf/releases/tag/${src.rev}";
|
||||||
maintainers = with maintainers; [ doronbehar ];
|
license = with licenses; [ asl20 mit ];
|
||||||
|
maintainers = with maintainers; [ doronbehar figsoda ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user