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

28 lines
716 B
Nix
Raw Normal View History

2021-09-29 15:37:07 +00:00
{ lib, rustPlatform, fetchFromGitHub }:
2018-01-06 20:33:54 +00:00
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "svgcleaner";
2021-09-29 15:37:07 +00:00
version = "0.9.5";
src = fetchFromGitHub {
owner = "RazrFalcon";
repo = "svgcleaner";
rev = "v${version}";
2021-09-29 15:37:07 +00:00
sha256 = "sha256-nc+lKL6CJZid0WidcBwILhn81VgmmFrutfKT5UffdHA=";
};
2021-09-29 15:37:07 +00:00
cargoLock.lockFile = ./Cargo.lock;
postPatch = ''
cp ${./Cargo.lock} Cargo.lock;
'';
meta = with lib; {
description = "A tool for tidying and optimizing SVGs";
homepage = "https://github.com/RazrFalcon/svgcleaner";
2021-09-29 15:37:07 +00:00
changelog = "https://github.com/RazrFalcon/svgcleaner/blob/v${version}/CHANGELOG.md";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ mehandes ];
};
}