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

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

34 lines
817 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub }:
2020-10-14 05:20:00 +01:00
rustPlatform.buildRustPackage rec {
pname = "resvg";
version = "0.36.0";
2020-10-14 05:20:00 +01:00
src = fetchFromGitHub {
owner = "RazrFalcon";
repo = pname;
rev = "v${version}";
hash = "sha256-KxEeC9E1XG5ascIWzSAoNXtdJyPiEsXcQGebmhs/qkE=";
2020-10-14 05:20:00 +01:00
};
cargoHash = "sha256-iiPtf1xEBB80Cs31uUEbxG9YgKItdZCNGS6TTgrj4uM=";
2020-10-14 05:20:00 +01:00
2023-05-19 05:20:00 +01:00
cargoBuildFlags = [
"--package=resvg"
"--package=resvg-capi"
"--package=usvg"
];
postInstall = ''
install -Dm644 -t $out/include crates/c-api/*.h
'';
2020-10-14 05:20:00 +01:00
meta = with lib; {
description = "An SVG rendering library";
homepage = "https://github.com/RazrFalcon/resvg";
changelog = "https://github.com/RazrFalcon/resvg/blob/v${version}/CHANGELOG.md";
2020-10-14 05:20:00 +01:00
license = licenses.mpl20;
maintainers = [ maintainers.marsam ];
};
}