Commit ea780bce authored by Philip Taron's avatar Philip Taron Committed by Vincent Laporte
Browse files

ocamlPackages.reason-native: 2022-08-31-a0ddab6 -> <version>-unstable-2024-05-07

Upstream doesn't use releases, branches, or tags, so this is the most recent commit: https://github.com/reasonml/reason-native/commit/20b1997b6451d9715dfdbeec86a9d274c7430ed8

* ocamlPackages.reason-native.cli: init at 0.0.1-alpha-unstable-2024-05-07
* ocamlPackages.reason-native.console: 2022-08-31-a0ddab6 -> 0.1.0-unstable-2024-05-07
* ocamlPackages.reason-native.dir: 2022-08-31-a0ddab6 -> 0.0.1-unstable-2024-05-07
* ocamlPackages.reason-native.file-context-printer: 2022-08-31-a0ddab6 -> 0.0.3-unstable-2024-05-07
* ocamlPackages.reason-native.fp: 2022-08-31-a0ddab6 -> 0.0.1-unstable-2024-05-07
* ocamlPackages.reason-native.frame: init at 0.0.1-unstable-2024-05-07
* ocamlPackages.reason-native.fs: init at 0.0.2-unstable-2024-05-07
* ocamlPackages.reason-native.pastel: 2022-08-31-a0ddab6 -> 0.3.0-unstable-2024-05-07
* ocamlPackages.reason-native.pastel-console: 2022-08-31-a0ddab6 -> 0.0.0-unstable-2024-05-07
* ocamlPackages.reason-native.qcheck-rely: 2022-08-31-a0ddab6 -> 1.0.2-unstable-2024-05-07
* ocamlPackages.reason-native.refmterr: 2022-08-31-a0ddab6 -> 3.3.0-unstable-2024-05-07
* ocamlPackages.reason-native.rely: 2022-08-31-a0ddab6 -> 4.0.0-unstable-2024-05-07
* ocamlPackages.reason-native.rely-junit-reporter: 2022-08-31-a0ddab6 -> 1.0.0-unstable-2024-05-07
* ocamlPackages.reason-native.unicode: init at 0.0.0-unstable-2024-05-07
* ocamlPackages.reason-native.unicode-config: init at 0.0.0-unstable-2024-05-07
* ocamlPackages.reason-native.utf8: init at 0.1.0-unstable-2024-05-07

The version numbers are taken from upstream's `<package>.json` file.

I also fixed and updated `ocamlPackages.reason-native.console.tests` so that it builds and no longer includes its `default.nix` file.
parent e2ca8d5a
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
{ re, reason, pastel, ... }:
{ lib, buildDunePackage, re, reason, pastel, src }:

buildDunePackage {
  inherit src;

{
  pname = "cli";
  version = "0.0.1-alpha-unstable-2024-05-07";

  nativeBuildInputs = [
    reason
@@ -11,4 +14,11 @@
    re
    pastel
  ];

 meta = {
    downloadPage = "https://github.com/reasonml/reason-native";
    homepage = "https://reason-native.com/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ];
  };
}
+8 −5
Original line number Diff line number Diff line
{ buildDunePackage, callPackage, reason, console, ... }:
{ lib, buildDunePackage, callPackage, reason, console, src }:

buildDunePackage {
  inherit src;

{
  pname = "console";
  version = "0.1.0-unstable-2024-05-07";

  nativeBuildInputs = [
    reason
  ];

  passthru.tests = {
    console = callPackage ./tests/console {
      inherit buildDunePackage reason console;
    };
    console = callPackage ./tests/console { };
  };

  meta = {
    description = "Library providing a web-influenced polymorphic console API for native Console.log(anything) with runtime printing";
    downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/console";
    homepage = "https://reason-native.com/docs/console/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ];
  };
}
+46 −42
Original line number Diff line number Diff line
{ newScope, lib, fetchFromGitHub, callPackage, buildDunePackage, atdgen, junit, qcheck-core, re, reason, reason-native, fetchpatch }:
{
  lib,
  newScope,
  fetchFromGitHub,
  atdgen,
  buildDunePackage,
  junit,
  ppxlib,
  qcheck-core,
  re,
  reason,
}:

let
  generic = (somePath:
    let
      prepkg = import somePath {
        inherit callPackage cli buildDunePackage atdgen junit qcheck-core re reason fetchpatch;
        inherit (reason-native) console file-context-printer fp pastel rely;
      };
    in
      buildDunePackage
        ({
          version = "2022-08-31-a0ddab6";
lib.makeScope newScope (self: {
  inherit lib buildDunePackage re reason ppxlib;

  # Upstream doesn't use tags, releases, or branches.
  src = fetchFromGitHub {
    owner = "reasonml";
    repo = "reason-native";
            rev = "a0ddab6ab25237961e32d8732b0a222ec2372d4a";
            hash = "sha256-s2N5OFTwIbKXcv05gQRaBMCHO1Mj563yhryPeo8jMh8=";
    rev = "20b1997b6451d9715dfdbeec86a9d274c7430ed8";
    hash = "sha256-96Ucq70eSy6pqh5ne9xoODWe/nPuriZnFAdx0OkLVCs=";
  };

  cli = self.callPackage ./cli.nix { };
  console = self.callPackage ./console.nix { };
  dir = self.callPackage ./dir.nix { };
  file-context-printer = self.callPackage ./file-context-printer.nix { };
  frame = self.callPackage ./frame.nix { };
  fp = self.callPackage ./fp.nix { };
  fs = self.callPackage ./fs.nix { };
  pastel = self.callPackage ./pastel.nix { };
  pastel-console = self.callPackage ./pastel-console.nix { };
  qcheck-rely = self.callPackage ./qcheck-rely.nix {
    inherit qcheck-core;
  };
  refmterr = self.callPackage ./refmterr.nix {
    inherit atdgen;
  };
  rely = self.callPackage ./rely.nix { };
  rely-junit-reporter = self.callPackage ./rely-junit-reporter.nix {
    inherit atdgen junit;
  };
          duneVersion = "3";
          meta = with lib; {
            description = "Libraries for building and testing native Reason programs";
            downloadPage = "https://github.com/reasonml/reason-native";
            homepage = "https://reason-native.com/";
            license = licenses.mit;
            maintainers = with maintainers; [ ];
          } // (prepkg.meta or {});
        } // prepkg)
  );
  cli = generic ./cli.nix; # Used only by Rely.
in
  lib.makeScope newScope (self: with self; {
    console = generic ./console.nix;
    dir = generic ./dir.nix;
    file-context-printer = generic ./file-context-printer.nix;
    fp = generic ./fp.nix;
    pastel = generic ./pastel.nix;
    pastel-console = generic ./pastel-console.nix;
    qcheck-rely = generic ./qcheck-rely.nix;
    refmterr = generic ./refmterr.nix;
    rely = generic ./rely.nix;
    rely-junit-reporter = generic ./rely-junit-reporter.nix;
  unicode-config = self.callPackage ./unicode-config.nix { };
  unicode = self.callPackage ./unicode.nix { };
  utf8 = self.callPackage ./utf8.nix { };
})
+7 −2
Original line number Diff line number Diff line
{ reason, fp, ... }:
{ lib, buildDunePackage, reason, fp, src }:

buildDunePackage {
  inherit src;

{
  pname = "dir";
  version = "0.0.1-unstable-2024-05-07";

  nativeBuildInputs = [
    reason
@@ -14,5 +17,7 @@
  meta = {
    description = "Library that provides a consistent API for common system, user and application directories consistently on all platforms";
    downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/dir";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ];
  };
}
+7 −2
Original line number Diff line number Diff line
{ reason, re, pastel, ... }:
{ lib, buildDunePackage, reason, re, pastel, src }:

buildDunePackage {
  inherit src;

{
  pname = "file-context-printer";
  version = "0.0.3-unstable-2024-05-07";

  nativeBuildInputs = [
    reason
@@ -16,5 +19,7 @@
    description = "Utility for displaying snippets of files on the command line";
    downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/file-context-printer";
    homepage = "https://reason-native.com/docs/file-context-printer/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ];
  };
}
Loading