Closed fzakaria closed 2 years ago
Rationale: if you visit https://repology.org/repositories/graphs you can see that nixpkgs is the largest and freshest package repository. It's goal is similar to Spack to provide reproducible hermetic builds and also provides a Linux distribution (NixOS) on the same concepts.
Thanks! I'll merge this, and then backport it to the release/2.0 branch
Introduce a way to build libtree with Nix.
I see that the tool already has support for Spack, so Nix in theory is similar albeit more strict. I've included a default derivation that is pinned explicitly to all the required dependencies and commits.
strip and chrpath are also included and set to be runtime dependencies by wrapping the executable and prefixing the PATH environment variable.
If you have Nix installed you can easily run it with:
We can also upstream this derivation to nixpkgs as well.