about summary refs log tree commit diff
path: root/pkgs/applications/graphics/json-plot/default.nix
blob: 9b43518a87d241f5ff64be3af2c56119a0fc6a94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib
, fetchFromGitHub
, buildGoPackage
}:
# upstream is pretty stale, but it still works, so until they merge module
# support we have to use gopath: see sgreben/jp#29
buildGoPackage rec {
  pname = "json-plot";
  version = "1.1.12";

  src = fetchFromGitHub {
    owner = "sgreben";
    repo = "jp";
    rev = version;
    hash = "sha256-WWARAh/CF3lGli3VLRzAGaCA8xQyryPi8WcuwvdInjk=";
  };

  goPackagePath = "github.com/sgreben/jp";

  meta = with lib; {
    description = "Dead simple terminal plots from JSON (or CSV) data. Bar charts, line charts, scatter plots, histograms and heatmaps are supported.";
    homepage = "https://github.com/sgreben/jp";
    license = licenses.mit;
    maintainers = with maintainers; [ urandom ];
    mainProgram = "jp";
  };
}