2019-06-12 02:00:00 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "svgbob";
|
2019-10-01 08:48:23 +01:00
|
|
|
version = "0.4.2";
|
2019-06-12 02:00:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ivanceras";
|
|
|
|
repo = pname;
|
2019-10-01 08:48:23 +01:00
|
|
|
rev = "0febc4377134a2ea3b3cd43ebdf5ea688a0e7432";
|
|
|
|
sha256 = "1n0w5b3fjgbczy1iw52172x1p3y1bvw1qpz77fkaxkhrkgfd7vwr";
|
2019-06-12 02:00:00 +01:00
|
|
|
};
|
|
|
|
sourceRoot = "source/svgbob_cli";
|
2020-09-20 15:48:51 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ../svgbob/src/lib.rs \
|
|
|
|
--replace '#![deny(warnings)]' ""
|
|
|
|
'';
|
2019-06-12 02:00:00 +01:00
|
|
|
|
2020-03-09 03:06:26 +00:00
|
|
|
cargoSha256 = "1y9jsnxmz51zychmmzp6mi29pb5ks2qww7lk5bshkhp56v51sm8d";
|
2019-06-12 02:00:00 +01:00
|
|
|
|
|
|
|
# Test tries to build outdated examples
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert your ascii diagram scribbles into happy little SVG";
|
|
|
|
homepage = "https://github.com/ivanceras/svgbob";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|