-
Notifications
You must be signed in to change notification settings - Fork 4
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
flake support #8
base: main
Are you sure you want to change the base?
Conversation
@dguibert Fails to build with
|
See commented Line 26 and Line 27 of flake.nix, PATH should contains some build tools as SPACK package.py are not as pure as NIX derivation. As Dylan explained, the PATH variable can be populated with all the native tools of your OS, on NixOS I set PATH=/*"/run/current-system/sw/bin:"+*/
inputs.nixpkgs.lib.concatStringsSep ":"
(builtins.map (x: "${x}/bin")
[
pkgs.bash
pkgs.coreutils
pkgs.gnumake
pkgs.gnutar
pkgs.gzip
pkgs.bzip2
pkgs.xz
pkgs.gawk
pkgs.gnused
pkgs.gnugrep
pkgs.glib
pkgs.binutils.bintools # glib: locale
pkgs.patch
pkgs.texinfo
]); But perl does not build, I think the Perl package from SPACK hits this: Perl/perl5#18752 |
Ahh okay I see! I would suggest having a bit of documentation in the readme :-) |
Hi @luis-hebendanz, I've just updated this PR |
…ckSrc This will allow to pass these arguments from the flake inputs.
impure and sandbox options should be passed as: $ nix build .#pkgs.zlib -L --impure --option sandbox false
Flake lock file changes: • Added input 'nixpkgs': 'github:NixOS/nixpkgs/dd956a5acab3b6ae370facb3066cf400d575ff44' (2022-04-29) • Added input 'spack': 'github:spack/spack/8a6b73bb2cb285904398224e743e405cea87dcce' (2022-04-29)
This introduces flake support to nixpack:
It exposes
lib.packs
and the spack packages behind pkgs attribute (bootstrapped with the default gcc compiler from nixpkgs).nix build .#pkgs.mpileaks --impure --option sandbox false -L
As SPACK need to be patched, it is imported from flatironinstitute fork.
As nixpkgs need also to be patched [1], it is imported from my fork.
[1] NixOS/nixpkgs#144747