2021-09-29 15:37:07 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2017-10-25 16:23:39 +00:00
|
|
|
|
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";
|
2017-10-25 16:23:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RazrFalcon";
|
|
|
|
repo = "svgcleaner";
|
|
|
|
rev = "v${version}";
|
2021-09-29 15:37:07 +00:00
|
|
|
sha256 = "sha256-nc+lKL6CJZid0WidcBwILhn81VgmmFrutfKT5UffdHA=";
|
2017-10-25 16:23:39 +00:00
|
|
|
};
|
|
|
|
|
2021-09-29 15:37:07 +00:00
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cp ${./Cargo.lock} Cargo.lock;
|
|
|
|
'';
|
2017-10-25 16:23:39 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-25 16:23:39 +00:00
|
|
|
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 ];
|
2017-10-25 16:23:39 +00:00
|
|
|
};
|
|
|
|
}
|