depot/third_party/nixpkgs/pkgs/tools/graphics/svgbob/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

27 lines
749 B
Nix

{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "svgbob";
version = "0.7.2";
src = fetchCrate {
inherit version;
crateName = "svgbob_cli";
hash = "sha256-QWDi6cpADm5zOzz8hXuqOBtVrqb0DteWmiDXC6PsLS4=";
};
cargoHash = "sha256-Fj1qjG4SKlchUWW4q0tBC+9fHFFuY6MHngJCFz6J5JY=";
postInstall = ''
mv $out/bin/svgbob_cli $out/bin/svgbob
'';
meta = with lib; {
description = "Convert your ascii diagram scribbles into happy little SVG";
homepage = "https://github.com/ivanceras/svgbob";
changelog = "https://github.com/ivanceras/svgbob/raw/${version}/Changelog.md";
license = licenses.asl20;
maintainers = with maintainers; [ cafkafk ];
mainProgram = "svgbob";
};
}