Commit Graph

11 Commits

Author SHA1 Message Date
Philipp Schuster db9377c6e0 nix: switch to Nix Flake
This modernizes the Nix files of this project. Nix Flakes are the
de-facto standard way in Nix to package projects and specify their
inputs. Inputs can be any Nix or non-Nix project.

Updating Nix dependencies now is as easy as `nix flake update` and
a corresponding commit.

As they are still not stabilized yet, you need the line

    experimental-features = nix-command flakes

in /etc/nix/nix.conf to use the flake. By usage, I mean entering
the Nix development shell using `$ nix develop .` or if you want
to run `nix flake update`.

The package manager niv, we used to have, is basically dead.
2025-03-02 11:48:36 +01:00
Philipp Schuster a10ed1d37b niv: update dependencies
This brings in the latest packages from the Nix toolchain,
such as fresh rustc, cargo, etc.
2024-10-21 16:40:32 +02:00
Philipp Schuster 73fc03406a nix: run nixfmt
Formatted nix files by running `cargo xtask fmt`
2024-09-09 09:11:56 +02:00
Philipp Schuster b69db1ed13 niv: update 2024-09-09 09:07:07 +02:00
Philipp Schuster dbc344e064 nix/niv: update dependencies
This updates the toolchain coming from Nix.
2024-08-01 10:52:18 +02:00
Philipp Schuster 85eb730f3a nix/niv: update nixpkgs to nixos-24.05 2024-06-21 09:49:04 +02:00
Philipp Schuster 523a30b3a6 niv: update niv dependencies for Nix 2024-04-08 16:07:16 +02:00
Philipp Schuster 9968231e5b niv: update nixpkgs 2023-11-24 10:54:43 +01:00
Philipp Schuster b65cac29bf nix: get rust toolchain from rust-overlay
Now, a nix-shell always has the latest rust stable version, compliant to our
rust-toolchain.toml file.
2023-11-24 10:54:43 +01:00
Philipp Schuster f34bc480ce nix: switch to niv instead of non-standard dependency management 2023-06-10 19:46:42 -04:00
Philipp Schuster c41fcc22aa OVMF: enable "cargo xtest run" under NixOS
This commit enables to set OVMF files per env var on NixOS + assists NixOS users
by suggesting them to execute `$ nix-shell`.
2023-03-24 15:33:20 -04:00