2021-07-15 04:20:00 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate }:
|
2019-06-12 01:00:00 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "svgbob";
|
2023-08-30 03:42:08 +00:00
|
|
|
version = "0.7.2";
|
2019-06-12 01:00:00 +00:00
|
|
|
|
2021-07-15 04:20:00 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version;
|
|
|
|
crateName = "svgbob_cli";
|
2023-08-30 03:42:08 +00:00
|
|
|
sha256 = "sha256-QWDi6cpADm5zOzz8hXuqOBtVrqb0DteWmiDXC6PsLS4=";
|
2019-06-12 01:00:00 +00:00
|
|
|
};
|
|
|
|
|
2023-08-30 03:42:08 +00:00
|
|
|
cargoHash = "sha256-Fj1qjG4SKlchUWW4q0tBC+9fHFFuY6MHngJCFz6J5JY=";
|
2022-02-20 15:12:00 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/svgbob_cli $out/bin/svgbob
|
|
|
|
'';
|
2019-06-12 01:00:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert your ascii diagram scribbles into happy little SVG";
|
|
|
|
homepage = "https://github.com/ivanceras/svgbob";
|
2023-04-15 04:20:00 +00:00
|
|
|
changelog = "https://github.com/ivanceras/svgbob/raw/${version}/Changelog.md";
|
2019-06-12 01:00:00 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|