about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocolor/default.nix
blob: 16663a8db64c29cb66ae86cbc470b4c937d08d93 (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
28
29
30
{ lib
, fetchFromGitHub
, buildDunePackage
, cppo
}:

buildDunePackage rec {
  pname = "ocolor";
  version = "1.3.1";

  minimalOCamlVersion = "4.02";

  src = fetchFromGitHub {
    owner = "marc-chevalier";
    repo = pname;
    rev = "refs/tags/${version}";
    sha256 = "osQTZGJp9yDoKNa6WoyhViNbRg1ukcD0Jxiu4VxqeUc=";
  };

  nativeBuildInputs = [
    cppo
  ];

  meta = {
    description = "Print with style in your terminal using Format’s semantic tags";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ toastal ];
    homepage = "https://github.com/marc-chevalier/ocolor";
  };
}