Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esy: init at 0.6.6 #96234

Closed
wants to merge 1 commit into from
Closed

esy: init at 0.6.6 #96234

wants to merge 1 commit into from

Conversation

xavierzwirtz
Copy link
Contributor

Motivation for this change

Packaging of the esy package manager, by building on #65098, #85835 and esy/esy#994.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@xavierzwirtz
Copy link
Contributor Author

cc @NickHu, @lobre

@NickHu
Copy link
Contributor

NickHu commented Aug 25, 2020

I'm not in favor of using an FHS root for this, but I'm also not using reason anymore so feel free to discard my opinion.

@xavierzwirtz
Copy link
Contributor Author

Benefit of the FHS root is the OPAM ecosystem will work without requiring changes to any packages. I do not have an amazing amount of experience with Nix though, so I am unsure what the trade-offs are with this solution. I copied this approach from the flutter compiler.

Following on from PR NixOS#65098, this commit makes dose3 compile (all that
was missing was to compile the native version of cudf), and also esy.
Various packages have been updated too, and esy's node dependency
esy-solve-cudf has been packaged. A new overlay is added for
esyOcamlPackages, as mainline cmdliner and angstrom doesn't successfully
compile esy. It's anticipated that more esy-specific deviations might
occur.

Most of these changes were taken and adapted from
esy/esy#994 and
NixOS#85835

Co-authored-by: Xavier Zwirtz <me@xavierzwirtz.com>

meta = {
description = "CUDF (for Common Upgradeability Description Format) is a format for describing upgrade scenarios in package-based Free and Open Source Software distribution.";
license = stdenv.lib.licenses.lgpl3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add yourself as a maintainer.

createFindlibDestdir = true;

meta = {
description = "CUDF (for Common Upgradeability Description Format) is a format for describing upgrade scenarios in package-based Free and Open Source Software distribution.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "CUDF (for Common Upgradeability Description Format) is a format for describing upgrade scenarios in package-based Free and Open Source Software distribution.";
description = "Format for describing upgrade scenarios in package-based Free and Open Source Software distribution";


meta = {
description = "CUDF (for Common Upgradeability Description Format) is a format for describing upgrade scenarios in package-based Free and Open Source Software distribution.";
license = stdenv.lib.licenses.lgpl3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
license = stdenv.lib.licenses.lgpl3;
license = lib.licenses.lgpl3;

plus or only?

{ stdenv, fetchurl, ocaml, ocamlbuild, findlib
, cppo, cudf, ocamlgraph, ocaml_extlib, re, perl, ncurses }:

let base_patch_url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/dose3/dose3.5.0.1/files";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace the version number with the version variable.


meta = {
description = "Dose library (part of Mancoosi tools).";
license = stdenv.lib.licenses.lgpl3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add yourself as a maintainer.

Suggested change
license = stdenv.lib.licenses.lgpl3;
license = lib.licenses.lgpl3;

plus or only?

meta = {
homepage = https://github.com/andreypopp/esy-solve-cudf;
description = "package.json workflow for native development with Reason/OCaml";
license = stdenv.lib.licenses.gpl3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above.

@superherointj superherointj self-requested a review July 14, 2021 15:07
@stale
Copy link

stale bot commented Apr 25, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 25, 2022
@superherointj
Copy link
Contributor

Stale

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

Successfully merging this pull request may close these issues.

None yet

5 participants