Merge pull request #198923 from urandom2/json-plot

Fixes https://github.com/NixOS/nixpkgs/issues/85479
This commit is contained in:
Sandro 2022-11-07 23:10:39 +01:00 committed by GitHub
commit f33490ff93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,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";
};
}

View File

@ -27348,6 +27348,8 @@ with pkgs;
join-desktop = callPackage ../applications/misc/join-desktop { };
json-plot = callPackage ../applications/graphics/json-plot {};
libbitcoin = callPackage ../tools/misc/libbitcoin/libbitcoin.nix {
boost = boost175; # fatal error: 'boost/interprocess/detail/posix_time_types_wrk.hpp' file not found
};