From 3dde4fd38bc51ccf8fc486bb58678007b4e6ee1a Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 11 Sep 2021 16:55:35 -0400 Subject: [PATCH] textplots: init at 0.8.0 --- pkgs/tools/graphics/textplots/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/tools/graphics/textplots/default.nix diff --git a/pkgs/tools/graphics/textplots/default.nix b/pkgs/tools/graphics/textplots/default.nix new file mode 100644 index 000000000000..a0c5e72ac23c --- /dev/null +++ b/pkgs/tools/graphics/textplots/default.nix @@ -0,0 +1,20 @@ +{ fetchCrate, lib, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "textplots"; + version = "0.8.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "07lxnvg8g24r1j6h07w91j5lp0azngmb76lagk55y28br0y70qr4"; + }; + + cargoSha256 = "19xb1ann3bqx26nhjjvcwqdsvzg7lflg9fdrnlx05ndd2ip44flz"; + + meta = with lib; { + description = "Terminal plotting written in Rust"; + homepage = "https://github.com/loony-bean/textplots-rs"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 748e42e4f5c5..02c2ebf761c5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27917,6 +27917,8 @@ with pkgs; terminal-notifier = callPackage ../applications/misc/terminal-notifier {}; + textplots = callPackage ../tools/graphics/textplots { }; + texture-synthesis = callPackage ../tools/graphics/texture-synthesis { }; tty-solitaire = callPackage ../applications/misc/tty-solitaire { };