mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
ocamlPackages.timedesc: init at 2.0.0
This commit is contained in:
parent
235ca05f09
commit
73a1d0ddc1
36
pkgs/development/ocaml-modules/timedesc/default.nix
Normal file
36
pkgs/development/ocaml-modules/timedesc/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, buildDunePackage
|
||||
, angstrom
|
||||
, ptime
|
||||
, seq
|
||||
, timedesc-tzdb
|
||||
, timedesc-tzlocal
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "timedesc";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/daypack-dev/timere/releases/download/timedesc-${version}/timedesc-${version}.tar.gz";
|
||||
hash = "sha256-NnnQpWOE1mt/F5lkWRPdDwpqXCUlcNi+Z5GE6YQQLK8=";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
angstrom
|
||||
ptime
|
||||
seq
|
||||
timedesc-tzdb
|
||||
timedesc-tzlocal
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "OCaml date time handling library";
|
||||
homepage = "https://github.com/daypack-dev/timere";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
};
|
||||
}
|
15
pkgs/development/ocaml-modules/timedesc/tzdb.nix
Normal file
15
pkgs/development/ocaml-modules/timedesc/tzdb.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ lib
|
||||
, buildDunePackage
|
||||
, timedesc
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "timedesc-tzdb";
|
||||
|
||||
inherit (timedesc) version src sourceRoot;
|
||||
|
||||
meta = timedesc.meta // {
|
||||
description = "Virtual library for Timedesc time zone database backends";
|
||||
};
|
||||
}
|
||||
|
16
pkgs/development/ocaml-modules/timedesc/tzlocal.nix
Normal file
16
pkgs/development/ocaml-modules/timedesc/tzlocal.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ lib
|
||||
, buildDunePackage
|
||||
, timedesc
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "timedesc-tzlocal";
|
||||
|
||||
inherit (timedesc) version src sourceRoot;
|
||||
|
||||
minimalOCamlVersion = "4.08";
|
||||
|
||||
meta = timedesc.meta // {
|
||||
description = "Virtual library for Timedesc local time zone detection backends";
|
||||
};
|
||||
}
|
@ -1757,6 +1757,10 @@ let
|
||||
|
||||
timed = callPackage ../development/ocaml-modules/timed { };
|
||||
|
||||
timedesc = callPackage ../development/ocaml-modules/timedesc { };
|
||||
timedesc-tzdb = callPackage ../development/ocaml-modules/timedesc/tzdb.nix { };
|
||||
timedesc-tzlocal = callPackage ../development/ocaml-modules/timedesc/tzlocal.nix { };
|
||||
|
||||
tiny_httpd = callPackage ../development/ocaml-modules/tiny_httpd { };
|
||||
|
||||
tls = callPackage ../development/ocaml-modules/tls { };
|
||||
|
Loading…
Reference in New Issue
Block a user