Skip to content

Commit f33490f

Browse files
Merge pull request #198923 from urandom2/json-plot
Fixes #85479
2 parents d373cb1 + 456fd57 commit f33490f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{ lib
2+
, fetchFromGitHub
3+
, buildGoPackage
4+
}:
5+
# upstream is pretty stale, but it still works, so until they merge module
6+
# support we have to use gopath: see sgreben/jp#29
7+
buildGoPackage rec {
8+
pname = "json-plot";
9+
version = "1.1.12";
10+
11+
src = fetchFromGitHub {
12+
owner = "sgreben";
13+
repo = "jp";
14+
rev = version;
15+
hash = "sha256-WWARAh/CF3lGli3VLRzAGaCA8xQyryPi8WcuwvdInjk=";
16+
};
17+
18+
goPackagePath = "github.com/sgreben/jp";
19+
20+
meta = with lib; {
21+
description = "Dead simple terminal plots from JSON (or CSV) data. Bar charts, line charts, scatter plots, histograms and heatmaps are supported.";
22+
homepage = "https://github.com/sgreben/jp";
23+
license = licenses.mit;
24+
maintainers = with maintainers; [ urandom ];
25+
mainProgram = "jp";
26+
};
27+
}

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27348,6 +27348,8 @@ with pkgs;
2734827348

2734927349
join-desktop = callPackage ../applications/misc/join-desktop { };
2735027350

27351+
json-plot = callPackage ../applications/graphics/json-plot {};
27352+
2735127353
libbitcoin = callPackage ../tools/misc/libbitcoin/libbitcoin.nix {
2735227354
boost = boost175; # fatal error: 'boost/interprocess/detail/posix_time_types_wrk.hpp' file not found
2735327355
};

0 commit comments

Comments
 (0)