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

Nix flake #1093

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open

Nix flake #1093

wants to merge 9 commits into from

Conversation

kstppd
Copy link
Contributor

@kstppd kstppd commented Feb 6, 2025

So I have been using this for a while and thought people might like it. If the nix package manager is available (like on many systems e.g mine) this flake can build a full environment and produce a fresh Vlasiator binary. The flake installs all dependencies the "nix way" and exposes flags that are used by the Makefile.nix makefile. And that's all.

Instructions:
Install nix on you system and allow extra-epxerimental-features = flakes, nix-command

  1. Clone Vlasiator
  2. cd vlasiator
  3. nix develop --impure
  4. make -j ncores
  5. run vlasiator

*This could also heavily be used/abused to ease the CI builds especially with rocm/nvcc later on

flake.nix Outdated
version = "1.72.0";

src = pkgs.fetchurl {
url = "http://freefr.dl.sourceforge.net/project/boost/boost/1.72.0/boost_1_72_0.tar.bz2";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update that to 1.87 or so please.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

righto

@fusionby2030
Copy link

Still needs the following:

  • Recursive submodules initialization
  • setup nix extra-epxerimental-features = flakes, nix-command

@kstppd
Copy link
Contributor Author

kstppd commented Feb 21, 2025

Still needs the following:

* Recursive submodules initialization

* setup nix `extra-epxerimental-features = flakes, nix-command`

Nix stuff added to PR description. The submodule-fu is described in the Vlasiator wiki and thus do not involve this PR

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.

3 participants