nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.3 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 ocaml, 6 findlib, 7 ocamlbuild, 8 topkg, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 version = "1.2.0"; 13 pname = "ocaml${ocaml.version}-ptime"; 14 15 src = fetchurl { 16 url = "https://erratique.ch/software/ptime/releases/ptime-${finalAttrs.version}.tbz"; 17 hash = "sha256-lhZ0f99JDsNugCTKsn7gHjoK9XfYojImY4+kA03nOrA="; 18 }; 19 20 nativeBuildInputs = [ 21 findlib 22 ocaml 23 ocamlbuild 24 topkg 25 ]; 26 27 buildInputs = [ 28 topkg 29 ]; 30 31 strictDeps = true; 32 33 inherit (topkg) buildPhase installPhase; 34 35 meta = { 36 description = "POSIX time for OCaml"; 37 homepage = "https://erratique.ch/software/ptime"; 38 license = lib.licenses.isc; 39 longDescription = '' 40 Ptime has platform independent POSIX time support in pure OCaml. 41 It provides a type to represent a well-defined range of POSIX timestamps 42 with picosecond precision, conversion with date-time values, conversion 43 with RFC 3339 timestamps and pretty printing to a human-readable, 44 locale-independent representation. 45 46 The additional Ptime_clock library provides access to a system POSIX clock 47 and to the system's current time zone offset. 48 49 Ptime is not a calendar library. 50 ''; 51 maintainers = with lib.maintainers; [ sternenseemann ]; 52 broken = !(lib.versionAtLeast ocaml.version "4.08"); 53 }; 54})