Skip to content

Commit

Permalink
Added mozilla overlay and mold linker to shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
juh9870 authored Feb 1, 2024
1 parent 31c0e2a commit 0b1b31e
Showing 1 changed file with 14 additions and 3 deletions.
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 ]; };
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

0 comments on commit 0b1b31e

Please sign in to comment.