svgbob: 0.4.2 -> 0.5.3

This commit is contained in:
Mario Rodas 2021-07-15 04:20:00 +00:00
parent 10b82fbfbc
commit 8bd9288cc5

View file

@ -1,25 +1,16 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "svgbob";
version = "0.4.2";
version = "0.5.3";
src = fetchFromGitHub {
owner = "ivanceras";
repo = pname;
rev = "0febc4377134a2ea3b3cd43ebdf5ea688a0e7432";
sha256 = "1n0w5b3fjgbczy1iw52172x1p3y1bvw1qpz77fkaxkhrkgfd7vwr";
src = fetchCrate {
inherit version;
crateName = "svgbob_cli";
sha256 = "1gi8h4wzpi477y1gwi4708pn2kr65934a4dmphbhwppxbw447qiw";
};
sourceRoot = "source/svgbob_cli";
postPatch = ''
substituteInPlace ../svgbob/src/lib.rs \
--replace '#![deny(warnings)]' ""
'';
cargoSha256 = "1jyycr95gjginx6bzmay9b5dbpnbwdqbv13w1qy58znicsmh3v8a";
# Test tries to build outdated examples
doCheck = false;
cargoSha256 = "1x8phpllwm12igaachghwq6wgxl7nl8bhh7xybfrmn447viwxhq2";
meta = with lib; {
description = "Convert your ascii diagram scribbles into happy little SVG";