nixpkgs/pkgs/tools/graphics/svgbob/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
635 B
Nix
Raw Normal View History

2021-07-15 04:20:00 +00:00
{ lib, rustPlatform, fetchCrate }:
2019-06-12 01:00:00 +00:00
rustPlatform.buildRustPackage rec {
pname = "svgbob";
2022-02-20 15:12:00 +00:00
version = "0.6.5";
2019-06-12 01:00:00 +00:00
2021-07-15 04:20:00 +00:00
src = fetchCrate {
inherit version;
crateName = "svgbob_cli";
2022-02-20 15:12:00 +00:00
sha256 = "sha256-EsOq081wfnuFT0OKqLyi3R105brZwuHJwzEx00c2LGg=";
2019-06-12 01:00:00 +00:00
};
2022-02-20 15:12:00 +00:00
cargoSha256 = "sha256-sBU3GoqUH9cS1Kn0MCysCG9kQsWQqteVui1AHW9bfs0=";
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";
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
};
}