nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 version ? "0.0.6",
6 ptime,
7 re,
8 uutf,
9 alcotest,
10 crowbar,
11 fmt,
12 rresult,
13}:
14
15buildDunePackage {
16 pname = "conan";
17 inherit version;
18
19 src = fetchurl {
20 url = "https://github.com/mirage/conan/releases/download/v${version}/conan-${version}.tbz";
21 hash = "sha256-shAle4gXFf+53L+IZ4yFWewq7yZ5WlMEr9WotLvxHhY=";
22 };
23
24 propagatedBuildInputs = [
25 ptime
26 re
27 uutf
28 ];
29
30 doCheck = true;
31
32 checkInputs = [
33 alcotest
34 crowbar
35 fmt
36 rresult
37 ];
38
39 minimalOCamlVersion = "4.12";
40
41 meta = {
42 description = "Identify type of your file (such as the MIME type)";
43 homepage = "https://github.com/mirage/conan";
44 license = lib.licenses.bsd2;
45 maintainers = [ lib.maintainers.vbgl ];
46 };
47}