mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
35 lines
822 B
Nix
35 lines
822 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "resvg";
|
|
version = "0.43.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RazrFalcon";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-7JnNgTLpRo39EjYWchnfjGRfNgEwy5x4tUUzWT/d8h0=";
|
|
};
|
|
|
|
cargoHash = "sha256-ok+Bqtc6YJoCRFis8JRmtKs1Jag04Ged2J4p4trI2ls=";
|
|
|
|
cargoBuildFlags = [
|
|
"--package=resvg"
|
|
"--package=resvg-capi"
|
|
"--package=usvg"
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm644 -t $out/include crates/c-api/*.h
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "SVG rendering library";
|
|
homepage = "https://github.com/RazrFalcon/resvg";
|
|
changelog = "https://github.com/RazrFalcon/resvg/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mpl20;
|
|
maintainers = [ ];
|
|
mainProgram = "resvg";
|
|
};
|
|
}
|