Skip to content

Commit 2c6e956

Browse files
LuigiPiuccoRahix
authored andcommitted
ravedude: update and revise flake
Dependency locks were updated, and the version of Rust used to build is now synchronized to the `ravedude/rust-toolchain.toml` file. The precise date of the latest stable was added to this file, and it should be updated when we raise our requirements. This way Nix will break explicitly (since it won't have versions from the current future), instead of silently using the old locked value.
1 parent 8def780 commit 2c6e956

File tree

3 files changed

+106
-30
lines changed

3 files changed

+106
-30
lines changed

ravedude/flake.lock

Lines changed: 91 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ravedude/flake.nix

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
{
22
inputs = {
3-
utils = {
4-
url = "github:numtide/flake-utils";
5-
};
6-
7-
naersk = {
8-
url = "github:nix-community/naersk";
9-
};
3+
utils.url = "github:numtide/flake-utils";
4+
naersk.url = "github:nix-community/naersk";
5+
fenix.url = "github:nix-community/fenix";
106
};
117

12-
outputs = { self, nixpkgs, utils, naersk }:
8+
outputs = { nixpkgs, utils, naersk, fenix, ... }:
139
utils.lib.eachDefaultSystem (system:
1410
let
1511
pkgs = import nixpkgs {
1612
inherit system;
13+
overlays = [ fenix.overlays.default ];
1714
};
18-
19-
naersk' = pkgs.callPackage naersk {};
20-
2115
lib = pkgs.lib;
2216

23-
in
24-
rec {
17+
rust-toolchain = pkgs.fenix.fromToolchainFile {
18+
file = ./rust-toolchain.toml;
19+
sha256 = "X/4ZBHO3iW0fOenQ3foEvscgAPJYl2abspaBThDOukI=";
20+
};
21+
naersk' = pkgs.callPackage naersk {
22+
cargo = rust-toolchain;
23+
rustc = rust-toolchain;
24+
};
25+
in {
2526
packages.default = naersk'.buildPackage {
2627
pname = "ravedude";
2728
src = ./.;

ravedude/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "stable"
2+
channel = "stable-2025-04-03"
33
profile = "minimal"

0 commit comments

Comments
 (0)