Skip to content

Nix flake#1093

Open
kstppd wants to merge 12 commits intofmihpc:devfrom
kstppd:dev
Open

Nix flake#1093
kstppd wants to merge 12 commits intofmihpc:devfrom
kstppd:dev

Conversation

@kstppd
Copy link
Copy Markdown
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

Comment thread MAKE/Makefile.nix
Comment thread 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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

righto

Comment thread generate_version.sh
@fusionby2030
Copy link
Copy Markdown

Still needs the following:

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

@kstppd
Copy link
Copy Markdown
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

@markusbattarbee
Copy link
Copy Markdown
Contributor

This now accidentally also includes #1113 - plus it actually doesn't pass its own build test :) Let's return to it when those two issues are fixed.

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.

4 participants