push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
lib,
buildDunePackage,
re,
reason,
pastel,
src,
}:
buildDunePackage {
inherit src;
pname = "cli";
version = "0.0.1-alpha-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
buildInputs = [
re
pastel
];
meta = {
downloadPage = "https://github.com/reasonml/reason-native";
homepage = "https://reason-native.com/";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,31 @@
{
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 { };
};
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 = [ ];
};
}

View File

@@ -0,0 +1,53 @@
{
lib,
newScope,
fetchFromGitHub,
atdgen,
buildDunePackage,
junit,
ppxlib,
qcheck-core,
re,
reason,
}:
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 = "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;
};
unicode-config = self.callPackage ./unicode-config.nix { };
unicode = self.callPackage ./unicode.nix { };
utf8 = self.callPackage ./utf8.nix { };
})

View File

@@ -0,0 +1,29 @@
{
lib,
buildDunePackage,
reason,
fp,
src,
}:
buildDunePackage {
inherit src;
pname = "dir";
version = "0.0.1-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
propagatedBuildInputs = [
fp
];
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 = [ ];
};
}

View File

@@ -0,0 +1,32 @@
{
lib,
buildDunePackage,
reason,
re,
pastel,
src,
}:
buildDunePackage {
inherit src;
pname = "file-context-printer";
version = "0.0.3-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
propagatedBuildInputs = [
re
pastel
];
meta = {
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 = [ ];
};
}

View File

@@ -0,0 +1,24 @@
{
lib,
buildDunePackage,
reason,
src,
}:
buildDunePackage {
inherit src;
pname = "fp";
version = "0.0.1-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
meta = {
description = "Library for creating and operating on file paths consistently on multiple platforms";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/fp";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,31 @@
{
lib,
buildDunePackage,
reason,
re,
pastel,
src,
}:
buildDunePackage {
inherit src;
pname = "frame";
version = "0.0.1-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
propagatedBuildInputs = [
pastel
re
];
meta = {
description = "Reason Native text layout library";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/frame";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,29 @@
{
lib,
buildDunePackage,
fp,
reason,
src,
}:
buildDunePackage {
inherit src;
pname = "fs";
version = "0.0.2-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
propagatedBuildInputs = [
fp
];
meta = {
description = "Reason Native file system API";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/fs";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,32 @@
{
lib,
buildDunePackage,
reason,
console,
pastel,
src,
}:
buildDunePackage {
inherit src;
pname = "pastel-console";
version = "0.0.0-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
propagatedBuildInputs = [
console
pastel
];
meta = {
description = "Small library for pretty coloring to Console output";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/pastel-console";
homepage = "https://reason-native.com/docs/pastel/console";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,32 @@
{
lib,
buildDunePackage,
reason,
re,
src,
}:
buildDunePackage {
inherit src;
pname = "pastel";
version = "0.3.0-unstable-2024-05-07";
minimalOCamlVersion = "4.05";
nativeBuildInputs = [
reason
];
propagatedBuildInputs = [
re
];
meta = {
description = "Text formatting library that harnesses Reason JSX to provide intuitive terminal output. Like React but for CLI";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/pastel";
homepage = "https://reason-native.com/docs/pastel/";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,33 @@
{
lib,
buildDunePackage,
qcheck-core,
reason,
console,
rely,
src,
}:
buildDunePackage {
inherit src;
pname = "qcheck-rely";
version = "1.0.2-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
propagatedBuildInputs = [
qcheck-core
console
rely
];
meta = {
description = "Library containing custom Rely matchers allowing for easily using QCheck with Rely. QCheck is a 'QuickCheck inspired property-based testing for OCaml, and combinators to generate random values to run tests on'";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/qcheck-rely";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,40 @@
{
lib,
buildDunePackage,
atdgen,
atdgen-runtime,
re,
reason,
pastel,
src,
}:
buildDunePackage {
inherit src;
pname = "refmterr";
version = "3.3.0-unstable-2024-05-07";
postPatch = ''
substituteInPlace src/refmterr/lib/dune --replace-warn 'atdgen re' 'atdgen-runtime re'
'';
nativeBuildInputs = [
atdgen
reason
];
propagatedBuildInputs = [
atdgen-runtime
re
pastel
];
meta = {
description = "Error formatter tool for Reason and OCaml. Takes raw error output from compiler and converts to pretty output";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/refmterr";
homepage = "https://reason-native.com/docs/refmterr/";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,41 @@
{
lib,
buildDunePackage,
atdgen,
junit,
re,
reason,
pastel,
rely,
src,
}:
buildDunePackage {
inherit src;
pname = "rely-junit-reporter";
version = "1.0.0-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
buildInputs = [
atdgen
];
propagatedBuildInputs = [
junit
re
pastel
rely
];
meta = {
description = "Tool providing JUnit Reporter for Rely Testing Framework";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/rely-junit-reporter";
homepage = "https://reason-native.com/docs/rely/";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,36 @@
{
lib,
buildDunePackage,
re,
reason,
cli,
file-context-printer,
pastel,
src,
}:
buildDunePackage {
inherit src;
pname = "rely";
version = "4.0.0-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
propagatedBuildInputs = [
re
cli
file-context-printer
pastel
];
meta = {
description = "Jest-inspired testing framework for native OCaml/Reason";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/rely";
homepage = "https://reason-native.com/docs/rely/";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1 @@
Console.log(Some("Hello fellow Nixer!")); /* {"Hello fellow Nixer!"} */

View File

@@ -0,0 +1,40 @@
{
lib,
buildDunePackage,
reason,
console,
ppxlib,
}:
buildDunePackage {
pname = "console_test";
version = "1";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./console_test.opam
./console_test.re
./dune
./dune-project
];
};
duneVersion = "3";
nativeBuildInputs = [
reason
];
buildInputs = [
reason
console
ppxlib
];
doInstallCheck = true;
postInstallCheck = ''
$out/bin/console_test | grep -q "{\"Hello fellow Nixer!\"}" > /dev/null
'';
}

View File

@@ -0,0 +1,4 @@
(executable
(name console_test)
(public_name console_test)
(libraries reason console.lib))

View File

@@ -0,0 +1 @@
(lang dune 1.6)

View File

@@ -0,0 +1,24 @@
{
lib,
buildDunePackage,
reason,
src,
}:
buildDunePackage {
inherit src;
pname = "unicode-config";
version = "0.0.0-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
meta = {
description = "Configuration used to generate the @reason-native/unicode library";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/unicode-config";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,24 @@
{
lib,
buildDunePackage,
reason,
src,
}:
buildDunePackage {
inherit src;
pname = "unicode";
version = "0.0.0-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
meta = {
description = "Easy to use and well documented Unicode symbols";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/unicode";
license = lib.licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,24 @@
{
lib,
buildDunePackage,
reason,
src,
}:
buildDunePackage {
inherit src;
pname = "utf8";
version = "0.1.0-unstable-2024-05-07";
nativeBuildInputs = [
reason
];
meta = {
description = "Utf8 logic with minimal dependencies";
downloadPage = "https://github.com/reasonml/reason-native/tree/master/src/utf8";
license = lib.licenses.mit;
maintainers = [ ];
};
}