nixpkgs/pkgs/tools/graphics/svgbob/default.nix
Christina Sørensen 9255c4d2d0
treewide: adopt orphaned packages
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-04-28 20:43:06 +02:00

28 lines
751 B
Nix

{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "svgbob";
version = "0.7.2";
src = fetchCrate {
inherit version;
crateName = "svgbob_cli";
sha256 = "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";
};
}