summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-11-08 06:29:02 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2023-11-15 06:37:32 +0100
commitb2d53246f1c61f148f27588bce71e2ab303f6f6e (patch)
tree6984ee3d973a6f518b0beb96d8751a462fece238
parent3d88cc85dd12a695cd029b2f907ef609d7c25c68 (diff)
downloadnixpkgs-b2d53246f1c61f148f27588bce71e2ab303f6f6e.tar
nixpkgs-b2d53246f1c61f148f27588bce71e2ab303f6f6e.tar.gz
nixpkgs-b2d53246f1c61f148f27588bce71e2ab303f6f6e.tar.bz2
nixpkgs-b2d53246f1c61f148f27588bce71e2ab303f6f6e.tar.lz
nixpkgs-b2d53246f1c61f148f27588bce71e2ab303f6f6e.tar.xz
nixpkgs-b2d53246f1c61f148f27588bce71e2ab303f6f6e.tar.zst
nixpkgs-b2d53246f1c61f148f27588bce71e2ab303f6f6e.zip
ocamlPackages.getopt: 20120615 → 20230213
-rw-r--r--pkgs/development/ocaml-modules/getopt/default.nix30
1 files changed, 12 insertions, 18 deletions
diff --git a/pkgs/development/ocaml-modules/getopt/default.nix b/pkgs/development/ocaml-modules/getopt/default.nix
index e3bf2fb5d64..db03f7b0793 100644
--- a/pkgs/development/ocaml-modules/getopt/default.nix
+++ b/pkgs/development/ocaml-modules/getopt/default.nix
@@ -1,28 +1,22 @@
-{ lib, fetchzip, stdenv, ocaml, findlib, ocamlbuild }:
+{ lib, fetchFromGitHub, buildDunePackage }:
 
-stdenv.mkDerivation rec {
-  pname = "ocaml${ocaml.version}-getopt";
-  version = "20120615";
+buildDunePackage rec {
+  pname = "getopt";
+  version = "20230213";
 
-  src = fetchzip {
-    url = "https://download.ocamlcore.org/ocaml-getopt/ocaml-getopt/${version}/ocaml-getopt-${version}.tar.gz";
-    sha256 = "0bng2mmdixpmj23xn8krlnaq66k22iclwz46r8zjrsrq3wcn1xgn";
-  };
-
-  nativeBuildInputs = [
-    ocaml
-    findlib
-    ocamlbuild
-  ];
+  minimalOCamlVersion = "4.07";
 
-  strictDeps = true;
+  src = fetchFromGitHub {
+    owner = "scemama";
+    repo = "ocaml-getopt";
+    rev = version;
+    hash = "sha256-oYDm945LgjIW+8x7UrO4FlbHywnu8480aiEVvnjBxc8=";
+  };
 
   doCheck = true;
-  createFindlibDestdir = true;
 
   meta = {
-    inherit (ocaml.meta) platforms;
-    homepage = "https://github.com/gildor478/ocaml-getopt";
+    homepage = "https://github.com/scemama/ocaml-getopt";
     description = "Parsing of command line arguments (similar to GNU GetOpt) for OCaml";
     license = lib.licenses.mit;
     maintainers = [ lib.maintainers.ulrikstrid ];