nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 ocaml,
4 buildDunePackage,
5 fetchurl,
6 mdx,
7}:
8
9buildDunePackage rec {
10 pname = "colors";
11 version = "0.0.1";
12
13 minimalOCamlVersion = "4.13";
14
15 src = fetchurl {
16 url = "https://github.com/leostera/colors/releases/download/${version}/colors-${version}.tbz";
17 hash = "sha256-fY1j9FODVnifwsI8qkKm0QSmssgWqYFXJ7y8o7/KmEY=";
18 };
19
20 doCheck = lib.versionAtLeast ocaml.version "5.1";
21
22 checkInputs = [
23 mdx
24 ];
25
26 nativeCheckInputs = [
27 mdx.bin
28 ];
29
30 meta = {
31 description = "Pure OCaml library for manipulating colors across color spaces";
32 homepage = "https://github.com/leostera/colors";
33 changelog = "https://github.com/leostera/colors/blob/${version}/CHANGES.md";
34 license = lib.licenses.mit;
35 maintainers = [ ];
36 };
37}