-
Notifications
You must be signed in to change notification settings - Fork 14
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
add nix build instructions and README section #173
Conversation
c776eb4
to
c068098
Compare
# Conflicts: # README.md
@sheepforce Thanks a lot! |
You mean in upstream nix here: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/tr/trexio/package.nix#L16 For upstream Nix we had a short discussion in the PR about that and decided to use the Git sources directly. It plays nicer with the fetchers and Nix is a source oriented package manager, where we often try to by as close to the source as possible. For example, we also run the libint generator and do not only build the libint release tarballs with generated code. In principle, it would of course be possible to use the release tarballs directly, but it would not really reduce dependencies. Emacs and Swig are in For the second case, i.e. the flake.nix in this PR, Nix is using the code of the git checkout, the flake.nix itself is in (sorry if this sentence is confusing. I couldn't find a better wording 😅) I.e. you instruct Nix to build a specific git reference, Nix will build exactly that specific git reference, using the flake.nix contained in that commit. For example {
inputs.trexio.url = "github:trex-coe/trexio/madelung";
outputs = { trexio, ... }: # ...
} |
OK, I get it! Thanks for the details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @sheepforce ! Looks good to me.
This adds Nix build instructions and a README section on its usage.