Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conduwuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🥺
conduwuit
Commits
eb4323cc
Unverified
Commit
eb4323cc
authored
1 year ago
by
Charles Hall
Browse files
Options
Downloads
Patches
Plain Diff
use mold on linux
parent
a6712627
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flake.nix
+8
-1
8 additions, 1 deletion
flake.nix
with
8 additions
and
1 deletion
flake.nix
+
8
−
1
View file @
eb4323cc
...
...
@@ -25,6 +25,12 @@
let
pkgs
=
nixpkgs
.
legacyPackages
.
${
system
};
# Use mold on Linux
stdenv
=
if
pkgs
.
stdenv
.
isLinux
then
pkgs
.
stdenvAdapters
.
useMoldLinker
pkgs
.
stdenv
else
pkgs
.
stdenv
;
# Nix-accessible `Cargo.toml`
cargoToml
=
builtins
.
fromTOML
(
builtins
.
readFile
./Cargo.toml
);
...
...
@@ -54,12 +60,13 @@
src
=
./.
;
inherit
stdenv
nativeBuildInputs
ROCKSDB_INCLUDE_DIR
ROCKSDB_LIB_DIR
;
};
devShells
.
default
=
pkgs
.
mkShell
{
devShells
.
default
=
(
pkgs
.
mkShell
.
override
{
inherit
stdenv
;
})
{
# Rust Analyzer needs to be able to find the path to default crate
# sources, and it can read this environment variable to do so
RUST_SRC_PATH
=
"
${
toolchain
.
rust-src
}
/lib/rustlib/src/rust/library"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment