2021-07-16 19:40:57 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "svgbob";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.7.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version;
|
|
|
|
crateName = "svgbob_cli";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-QWDi6cpADm5zOzz8hXuqOBtVrqb0DteWmiDXC6PsLS4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-Fj1qjG4SKlchUWW4q0tBC+9fHFFuY6MHngJCFz6J5JY=";
|
2022-02-21 08:47:16 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/svgbob_cli $out/bin/svgbob
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert your ascii diagram scribbles into happy little SVG";
|
|
|
|
homepage = "https://github.com/ivanceras/svgbob";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/ivanceras/svgbob/raw/${version}/Changelog.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ cafkafk ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "svgbob";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|