Skip to content

Commit

Permalink
Update flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdy committed Jul 27, 2023
1 parent 892dc7e commit eb7c60c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

13 changes: 9 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
else
llvm.stdenv;

mkShell = if stdenv.isLinux then
pkgs.mkShell.override { inherit stdenv; }
else
pkgs.mkShell;

rustPlatform = pkgs.makeRustPlatform {
cargo = pkgs.cargo;
rustc = pkgs.rustc;
Expand Down Expand Up @@ -90,8 +95,8 @@
ORT_STRATEGY = "system";
ORT_LIB_LOCATION = "${onnxruntime14}/lib";
ORT_DYLIB_PATH = "${onnxruntime14}/lib/${onnxruntime_lib}";
RUSTFLAGS =
lib.optionalString stdenv.isLinux "-C link-arg=-fuse-ld=mold";
} // lib.optionalAttrs stdenv.isLinux {
RUSTFLAGS = "-C link-arg=-fuse-ld=mold";
};

bleep =
Expand Down Expand Up @@ -185,7 +190,7 @@
};

devShells = {
default = (pkgs.mkShell.override { inherit stdenv; } {
default = (pkgs.mkShell {
buildInputs = buildDeps ++ runtimeDeps ++ guiDeps ++ (with pkgs; [
git-lfs
rustfmt
Expand All @@ -198,7 +203,7 @@

src = pkgs.lib.sources.cleanSource ./.;

BLOOP_LOG="bleep=debug";
BLOOP_LOG = "bleep=debug";
}).overrideAttrs (old: envVars);
};

Expand Down

0 comments on commit eb7c60c

Please sign in to comment.