summary refs log tree commit diff
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2021-06-06 07:40:27 -0300
committerVincent Laporte <vbgl@users.noreply.github.com>2021-06-13 15:24:10 +0200
commita88ad63642bcf793ffb3a0527f3e222bcedb3f8d (patch)
tree1511ec91cdff89b16a76c9ba26c81cb3006da6f3
parent6aa2bb6a818d12d4cf296f736263011611cf2610 (diff)
downloadnixpkgs-a88ad63642bcf793ffb3a0527f3e222bcedb3f8d.tar
nixpkgs-a88ad63642bcf793ffb3a0527f3e222bcedb3f8d.tar.gz
nixpkgs-a88ad63642bcf793ffb3a0527f3e222bcedb3f8d.tar.bz2
nixpkgs-a88ad63642bcf793ffb3a0527f3e222bcedb3f8d.tar.lz
nixpkgs-a88ad63642bcf793ffb3a0527f3e222bcedb3f8d.tar.xz
nixpkgs-a88ad63642bcf793ffb3a0527f3e222bcedb3f8d.tar.zst
nixpkgs-a88ad63642bcf793ffb3a0527f3e222bcedb3f8d.zip
ocamlPackages.fileutils: 0.5.3 -> 0.6.3
-rw-r--r--pkgs/development/ocaml-modules/fileutils/default.nix38
1 files changed, 20 insertions, 18 deletions
diff --git a/pkgs/development/ocaml-modules/fileutils/default.nix b/pkgs/development/ocaml-modules/fileutils/default.nix
index 39c41e8eba0..819298ac8cf 100644
--- a/pkgs/development/ocaml-modules/fileutils/default.nix
+++ b/pkgs/development/ocaml-modules/fileutils/default.nix
@@ -1,28 +1,30 @@
-{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
+{ lib, fetchurl, buildDunePackage, stdlib-shims, ounit }:
 
-stdenv.mkDerivation {
-  name = "ocaml${ocaml.version}-fileutils-0.5.3";
+buildDunePackage rec {
+  pname = "fileutils";
+  version = "0.6.3";
 
   src = fetchurl {
-    url = "https://forge.ocamlcore.org/frs/download.php/1728/ocaml-fileutils-0.5.3.tar.gz";
-    sha256 = "1rc4cqlvdhbs55i85zfbfhz938fsy4fj6kwlkfm3ra7bpwn8bmpd";
+    url = "https://github.com/gildor478/ocaml-fileutils/releases/download/v${version}/fileutils-v${version}.tbz";
+    sha256 = "0qhlhc7fzcq0yfg1wyszsi0gyc4w9hyzmfv84aq9wc79i3283xgg";
   };
 
-  buildInputs = [ ocaml findlib ocamlbuild ounit ];
+  minimumOCamlVersion = "4.03";
+  useDune2 = true;
 
-  configureFlags = [ "--enable-tests" ];
-  doCheck = true;
-  checkTarget = "test";
-
-  createFindlibDestdir = true;
+  propagatedBuildInputs = [
+    stdlib-shims
+  ];
 
-  preInstall = "make doc";
+  checkInputs = [
+    ounit
+  ];
+  doCheck = true;
 
-  meta = {
-    homepage = "https://forge.ocamlcore.org/projects/ocaml-fileutils/";
-    platforms = ocaml.meta.platforms or [];
-    description = "Library to provide pure OCaml functions to manipulate real file (POSIX like) and filename";
-    license = lib.licenses.lgpl21Plus;
-    maintainers = with lib.maintainers; [ vbgl ];
+  meta = with lib; {
+    description = "OCaml API to manipulate real files (POSIX like) and filenames";
+    homepage = "https://github.com/gildor478/ocaml-fileutils";
+    license = licenses.lgpl21Plus;
+    maintainers = with maintainers; [ vbgl ];
   };
 }