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

Package PineAPPL for Nix #280

Draft
wants to merge 16 commits into
base: nix
Choose a base branch
from
Draft

Package PineAPPL for Nix #280

wants to merge 16 commits into from

Conversation

alecandido
Copy link
Member

@alecandido alecandido commented Apr 23, 2024

Introduce a Nix package for the PineAPPL CLI.

This should be able to provide a working shell, with PineAPPL and LHAPDF, just by installing Nix and running:

nix shell github:nnpdf/pineappl nixpkgs#lhapdf

(It already works, but you should use github:nnpdf/pineappl/nix-pkg to target this branch, and, of course, it will compile PineAPPL on the user machine - to avoid that we should provide a cache)

@alecandido
Copy link
Member Author

This is pretty much ready, and it could be already tested. But I'd wait to merge first #245.

I will further refactor in #281, to make room for the Python package as well.

If taken directly from the environment, it will lose all the additions made by the Nix packages

Accessing the value from the configuration will always improve self-consistency
Just run a shell export command right before entering the shell
If not specifically needed, the default should be good enough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant