From c06cd5bfe25c58cda4cc9601e54394c7ee83546a Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 16 Nov 2023 05:58:01 +0100 Subject: ocamlPackages.syslog: 1.5 → 2.0.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/syslog/default.nix | 24 ++++++++--------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'pkgs/development/ocaml-modules') diff --git a/pkgs/development/ocaml-modules/syslog/default.nix b/pkgs/development/ocaml-modules/syslog/default.nix index ccec03296384a..ad9204847e101 100644 --- a/pkgs/development/ocaml-modules/syslog/default.nix +++ b/pkgs/development/ocaml-modules/syslog/default.nix @@ -1,30 +1,22 @@ -{ lib, stdenv, fetchFromGitHub, ocaml, findlib }: +{ lib, fetchFromGitHub, buildDunePackage }: -assert lib.versionAtLeast (lib.getVersion ocaml) "4.03.0"; +buildDunePackage rec { + pname = "syslog"; + version = "2.0.2"; -stdenv.mkDerivation rec { - pname = "ocaml${ocaml.version}-syslog"; - version = "1.5"; + minimalOCamlVersion = "4.03"; src = fetchFromGitHub { - owner = "rixed"; + owner = "geneanet"; repo = "ocaml-syslog"; rev = "v${version}"; - sha256 = "1kqpc55ppzv9n555qgqpda49n7nvkqimzisyjx2a7338r7q4r5bw"; + hash = "sha256-WybNZBPhv4fhjzzb95E+6ZHcZUnfROLlNF3PMBGO9ys="; }; - nativeBuildInputs = [ ocaml findlib ]; - strictDeps = true; - - buildFlags = [ "all" "opt" ]; - - createFindlibDestdir = true; - meta = with lib; { - homepage = "https://github.com/rixed/ocaml-syslog"; + homepage = "https://github.com/geneanet/ocaml-syslog"; description = "Simple wrapper to access the system logger from OCaml"; license = licenses.lgpl21Plus; - inherit (ocaml.meta) platforms; maintainers = [ maintainers.rixed ]; }; } -- cgit 1.4.1