Unverified Commit bc010e1e authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

various: migrate ocaml packages to finalAttrs pattern #1 (#482440)

parents 61481734 8543c7c4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -11,12 +11,12 @@
  ocaml-syntax-shims,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "alcotest";
  version = "1.9.1";

  src = fetchurl {
    url = "https://github.com/mirage/alcotest/releases/download/${version}/alcotest-${version}.tbz";
    url = "https://github.com/mirage/alcotest/releases/download/${finalAttrs.version}/alcotest-${finalAttrs.version}.tbz";
    hash = "sha256-HinDtB1DKQYhBbcj39o6/4a4zvXnx1ANDkkfxf145II=";
  };

@@ -39,4 +39,4 @@ buildDunePackage rec {
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.ericbmerritt ];
  };
}
})
+4 −4
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  qcheck-core,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "algaeff";
  version = "2.0.0";

@@ -14,8 +14,8 @@ buildDunePackage rec {

  src = fetchFromGitHub {
    owner = "RedPRL";
    repo = pname;
    rev = version;
    repo = "algaeff";
    rev = finalAttrs.version;
    hash = "sha256-VRZfULbXKRcExU1bnEu/X1KPX+L+dzcRYZVD985rQT4=";
  };

@@ -31,4 +31,4 @@ buildDunePackage rec {
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.vbgl ];
  };
}
})
+3 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  alsa-lib,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "alsa";
  version = "0.3.0";

@@ -15,7 +15,7 @@ buildDunePackage rec {
  src = fetchFromGitHub {
    owner = "savonet";
    repo = "ocaml-alsa";
    rev = version;
    rev = finalAttrs.version;
    sha256 = "1qy22g73qc311rmv41w005rdlj5mfnn4yj1dx1jhqzr31zixl8hj";
  };

@@ -28,4 +28,4 @@ buildDunePackage rec {
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ dandellion ];
  };
}
})
+4 −4
Original line number Diff line number Diff line
@@ -3,14 +3,14 @@
  buildDunePackage,
  fetchurl,
}:
buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "ancient";
  version = "0.10.0";

  minimalOCamlVersion = "4.12";

  src = fetchurl {
    url = "https://github.com/OCamlPro/ocaml-ancient/releases/download/${version}/ancient-${version}.tbz";
    url = "https://github.com/OCamlPro/ocaml-ancient/releases/download/${finalAttrs.version}/ancient-${finalAttrs.version}.tbz";
    hash = "sha256-XeVUPrdg7QSV7V0Tz8Mkj5jvzKtYD9DON+tt9kkuCHM=";
  };

@@ -35,8 +35,8 @@ buildDunePackage rec {
      file in and see the structures.
    '';
    homepage = "https://github.com/OCamlPro/ocaml-ancient";
    changelog = "https://raw.githubusercontent.com/OCamlPro/ocaml-ancient/refs/tags/${version}/CHANGES.md";
    changelog = "https://raw.githubusercontent.com/OCamlPro/ocaml-ancient/refs/tags/${finalAttrs.version}/CHANGES.md";
    license = lib.licenses.lgpl21Plus;
    maintainers = with lib.maintainers; [ momeemt ];
  };
}
})
+4 −4
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
  gitUpdater,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "angstrom";
  version = "0.16.1";

@@ -18,8 +18,8 @@ buildDunePackage rec {

  src = fetchFromGitHub {
    owner = "inhabitedtype";
    repo = pname;
    rev = version;
    repo = "angstrom";
    rev = finalAttrs.version;
    hash = "sha256-EPqDK+7RU2vHEHvuoTXb8V2FkdXQ6tGu0ghbNPS3gZ4=";
  };

@@ -39,4 +39,4 @@ buildDunePackage rec {
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ sternenseemann ];
  };
}
})
Loading