aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-09 04:50:57 -0700
committerFuwn <[email protected]>2024-09-09 04:50:57 -0700
commit53deefec033e8ae09dd17dc256f0d647eea64014 (patch)
tree82d0ff3a11cd2275959035605792df1955d8f552
parentchore(direnv): explicit flake root (diff)
downloadlocus-53deefec033e8ae09dd17dc256f0d647eea64014.tar.xz
locus-53deefec033e8ae09dd17dc256f0d647eea64014.zip
chore(nix): pure-er development shell
-rw-r--r--flake.nix25
1 files changed, 15 insertions, 10 deletions
diff --git a/flake.nix b/flake.nix
index 2f1c310..6ca1c75 100644
--- a/flake.nix
+++ b/flake.nix
@@ -11,7 +11,6 @@
outputs =
{
- self,
nixpkgs,
flake-utils,
rust-overlay,
@@ -24,15 +23,21 @@
pkgs = import nixpkgs { inherit system overlays; };
in
{
- devShell = pkgs.mkShell {
- nativeBuildInputs = with pkgs; [
- rust-bin.nightly."2024-07-17".default
- cargo-make
- openssl.dev
- pkg-config
- cargo-watch
- ];
- };
+ devShell =
+ with pkgs;
+ mkShell.override
+ {
+ stdenv = stdenvAdapters.useMoldLinker clangStdenv;
+ }
+ {
+ nativeBuildInputs = [
+ rust-bin.nightly."2024-07-17".default
+ cargo-make
+ openssl
+ pkg-config
+ cargo-watch
+ ];
+ };
}
);
}