Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mozilla overlay and mold linker to shell.nix #351

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
with import <nixpkgs> { };
let
moz_overlay = import (builtins.fetchTarball
"https://github.com/mozilla/nixpkgs-mozilla/archive/9b11a87c0cc54e308fa83aac5b4ee1816d5418a2.tar.gz");
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }; # 23.11
juh9870 marked this conversation as resolved.
Show resolved Hide resolved
in with nixpkgs;
let
dlopen-libs = with xorg; [ vulkan-loader libX11 libXcursor libXrandr libXi ];
in mkShell {
nativeBuildInputs = with pkgs; [ rustChannels.stable.rust pkg-config zstd protobuf ];
in mkShell.override {
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.stdenv;
} {
nativeBuildInputs = with pkgs; [
rustChannels.stable.rust
pkg-config
zstd
protobuf
];
shellHook = ''
export RUST_BACKTRACE=1
export ZSTD_SYS_USE_PKG_CONFIG=1
Expand Down