Skip to content

Commit

Permalink
Fix flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
sveitser committed Dec 19, 2024
1 parent 0ebf371 commit abdb3af
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 147 deletions.
161 changes: 22 additions & 139 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@
] ++ lib.optionals (!stdenv.isDarwin) [
cargo-watch # broken: https://github.com/NixOS/nixpkgs/issues/146349
];
# nixWithFlakes allows pre v2.4 nix installations to use
# flake commands (like `nix flake update`)
nixWithFlakes = pkgs.writeShellScriptBin "nix" ''
exec ${pkgs.nixFlakes}/bin/nix --experimental-features "nix-command flakes" "$@"
'';
cargo-llvm-cov = pkgs.rustPlatform.buildRustPackage rec {
pname = "cargo-llvm-cov";
version = "0.5.0";
Expand Down Expand Up @@ -169,7 +164,6 @@
buildInputs = with pkgs;
[
rust-bin.nightly.latest.rust-analyzer
nixWithFlakes
nixpkgs-fmt
git
mdbook # make-doc, documentation generation
Expand All @@ -183,14 +177,13 @@
shellHook = shellHook;
buildInputs = with pkgs;
[
nixWithFlakes
git
nightlyToolchain
] ++ rustDeps;
};
perfShell = pkgs.mkShell {
shellHook = shellHook;
buildInputs = [ nixWithFlakes cargo-llvm-cov rustToolchain ] ++ rustDeps;
buildInputs = [ cargo-llvm-cov rustToolchain ] ++ rustDeps;

inherit RUST_SRC_PATH RUST_BACKTRACE RUST_LOG RUSTFLAGS CARGO_TARGET_DIR;
};
Expand Down

0 comments on commit abdb3af

Please sign in to comment.