fix(flake): build the root package, not "foobar"
This commit is contained in:
parent
1983167252
commit
3fd2674cb9
19
flake.nix
19
flake.nix
|
@ -65,19 +65,16 @@
|
||||||
overlays = [ (import inputs.rust-overlay) ];
|
overlays = [ (import inputs.rust-overlay) ];
|
||||||
};
|
};
|
||||||
|
|
||||||
packages.default = self'.packages.example;
|
packages.default = (rustPackage "");
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc}
|
export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc}
|
||||||
'';
|
'';
|
||||||
buildInputs = runtimeDeps;
|
buildInputs = runtimeDeps;
|
||||||
nativeBuildInputs = buildDeps ++ devDeps ++ [ (pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default)) ];
|
nativeBuildInputs =
|
||||||
};
|
buildDeps ++ devDeps ++ [ (pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default)) ];
|
||||||
|
};
|
||||||
|
|
||||||
packages.example = (rustPackage "foobar");
|
|
||||||
packages.example-base = (rustPackage "");
|
|
||||||
|
|
||||||
|
|
||||||
treefmt = {
|
treefmt = {
|
||||||
projectRootFile = "./flake.nix";
|
projectRootFile = "./flake.nix";
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
@ -8,7 +8,7 @@ fn main() {
|
||||||
tracing_subscriber::fmt::init();
|
tracing_subscriber::fmt::init();
|
||||||
solve_day(1, day01::pt1, day01::pt2);
|
solve_day(1, day01::pt1, day01::pt2);
|
||||||
solve_day(2, day02::pt1, day02::pt2);
|
solve_day(2, day02::pt1, day02::pt2);
|
||||||
solve_day(3, day03::pt1, day03::pt2);
|
solve_day(3, day03::pt1, day03::pt2);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn solve_day<Fa, Fb, Ta, Tb>(day: u8, part_a: Fa, part_b: Fb)
|
fn solve_day<Fa, Fb, Ta, Tb>(day: u8, part_a: Fa, part_b: Fb)
|
||||||
|
|
Loading…
Reference in a new issue