From 1f6d8426fd03d24b415b96f3e2c3cc05a627f26b Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Thu, 13 Aug 2020 20:45:40 +0200 Subject: [PATCH] chroma: init at 0.8.0 --- pkgs/tools/text/chroma/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/text/chroma/default.nix diff --git a/pkgs/tools/text/chroma/default.nix b/pkgs/tools/text/chroma/default.nix new file mode 100644 index 000000000000..ae4e26e2ca41 --- /dev/null +++ b/pkgs/tools/text/chroma/default.nix @@ -0,0 +1,24 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "chroma"; + version = "0.8.0"; + + src = fetchFromGitHub { + owner = "alecthomas"; + repo = "chroma"; + rev = "v${version}"; + sha256 = "066a6rdmf670d3v5sc7chbn7db09ldgxjympb03pcqwk644dixb1"; + }; + + vendorSha256 = "16cnc4scgkx8jan81ymha2q1kidm6hzsnip5mmgbxpqcc2h7hv9m"; + + subPackages = [ "cmd/chroma" ]; + + meta = with lib; { + homepage = "https://github.com/alecthomas/chroma"; + description = "A general purpose syntax highlighter in pure Go"; + license = licenses.mit; + maintainers = [ maintainers.sternenseemann ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 79a8951e8ab8..7486f1ace9f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -902,6 +902,8 @@ in withDriver = false; }; + chroma = callPackage ../tools/text/chroma { }; + clair = callPackage ../tools/admin/clair { }; cloud-sql-proxy = callPackage ../tools/misc/cloud-sql-proxy { };