fix(flake): build the root package, not "foobar"

This commit is contained in:
Lucy 2024-12-03 11:33:56 +01:00
parent 1983167252
commit 3fd2674cb9
2 changed files with 9 additions and 12 deletions

View file

@ -65,18 +65,15 @@
overlays = [ (import inputs.rust-overlay) ];
};
packages.default = self'.packages.example;
packages.default = (rustPackage "");
devShells.default = pkgs.mkShell {
shellHook = ''
export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc}
'';
buildInputs = runtimeDeps;
nativeBuildInputs = buildDeps ++ devDeps ++ [ (pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default)) ];
};
packages.example = (rustPackage "foobar");
packages.example-base = (rustPackage "");
shellHook = ''
export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc}
'';
buildInputs = runtimeDeps;
nativeBuildInputs =
buildDeps ++ devDeps ++ [ (pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default)) ];
};
treefmt = {
projectRootFile = "./flake.nix";