Skip to content

Comments

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

Merged
vbgl merged 1 commit intoNixOS:masterfrom
philiptaron:reason-native
Jun 28, 2024
Merged

ocamlPackages.reason-native: 2022-08-31-a0ddab6 -> <version>-unstable-2024-05-07#322767
vbgl merged 1 commit intoNixOS:masterfrom
philiptaron:reason-native

Conversation

@philiptaron
Copy link
Contributor

@philiptaron philiptaron commented Jun 26, 2024

Description of changes

Upstream doesn't use releases, branches, or tags, so this is the most recent commit: reasonml/reason-native@20b1997

  • 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.

The constituent packages were in an almost-but-not-quite callPackage style. I've updated them so that they're all actual packages. There's a mild amount of duplication induced by doing so, but no more so than every package in pkgs/by-name.

I also fixed and updated ocamlPackages.reason-native.console.tests so that it builds and no longer includes its default.nix file.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@philiptaron philiptaron requested a review from ulrikstrid as a code owner June 26, 2024 22:51
@philiptaron philiptaron requested review from Et7f3 and superherointj and removed request for ulrikstrid June 26, 2024 22:51
@github-actions github-actions bot added the 6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. label Jun 26, 2024
@philiptaron philiptaron requested a review from ulrikstrid June 26, 2024 22:51
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 27, 2024
@superherointj
Copy link
Contributor

Upstream doesn't use releases, branches, or tags

When I initially packaged this I wasn't aware of:

passthru.updateScript = unstableGitUpdater { };

Can be executed as:

nix-shell maintainers/scripts/update.nix --argstr package ocamlPackages.reason-native.paste

Things need to be tweaked a bit. But it could prove helpful in case you want to keep it fresh, not that upstream is changing much.

…-2024-05-07

Upstream doesn't use releases, branches, or tags, so this is the most recent commit: reasonml/reason-native@20b1997

* 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.
@philiptaron
Copy link
Contributor Author

Things need to be tweaked a bit. But it could prove helpful in case you want to keep it fresh, not that upstream is changing much.

Thanks for the link and the information. I thought about how updates would happen, given that this update was a little manual... but that slow rate of changes made me think it wasn't going to be an issue. If I'm in the area again in another couple years, let's see if I think differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants