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

chez-modules: Fix path to csv-site. #97927

Merged
merged 1 commit into from Sep 14, 2020
Merged

Conversation

meithecatte
Copy link
Contributor

Motivation for this change

It seems that the installation path for chez modules no longer includes
the Chez version. This fixes the build for chez-mit and chez-scmutils.

ZHF: #97479

Note: I have tried to load the libraries in a nix-shell -p chez chez-scmutils, but it seems like some environment variables need to be set manually to get that working. I don't know whether that was the case beforehand. I suppose @jitwit or @thoughtpolice would know.

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) (no tests for chez found)
  • 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/) (no binaries)
  • 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.

It seems that the installation path for chez modules no longer includes
the Chez version. This fixes the build for chez-mit and chez-scmutils.
@jitwit
Copy link
Contributor

jitwit commented Sep 13, 2020

Ah yes, the CHEZSCHEMELIBDIRS environment variable ought to be set up automatically. I'm more familiar with guix, a nix native-search-paths equivalent is done through setupHook?

@meithecatte
Copy link
Contributor Author

It's funny that you mentioned it, I switched from Guix to Nix literally yesterday. I'm not sure how setupHooks work yet, but if nobody beats me to it, I'll submit a follow-up PR that makes the packages work in an interactive nix-shell (and probably simplifies the build procedures).

@risicle
Copy link
Contributor

risicle commented Sep 14, 2020

Two guix refugees meeting on a scheme PR, who would have thought

Builds happily, linux x86_64

@risicle risicle merged commit 9743a38 into NixOS:master Sep 14, 2020
@risicle
Copy link
Contributor

risicle commented Sep 14, 2020

Also, welcome to nixpkgs!

meithecatte added a commit to meithecatte/nixpkgs that referenced this pull request Sep 16, 2020
As a follow-up to NixOS#97927, chez can now find its libraries in a
nix-shell, and derivations for such libraries don't need to handle the
search path themselves.
@meithecatte meithecatte mentioned this pull request Sep 16, 2020
11 tasks
@meithecatte
Copy link
Contributor Author

I've opened a follow-up PR that redoes this with a setupHook: #98128. I'm planning to backport both at once...

meithecatte added a commit to meithecatte/nixpkgs that referenced this pull request Sep 24, 2020
As a follow-up to NixOS#97927, chez can now find its libraries in a
nix-shell, and derivations for such libraries don't need to handle the
search path themselves.

(cherry picked from commit 8f60607)
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

3 participants