Skip to content

Commit 9b29063

Browse files
committed
nix: switch from rust-overlay to rustup, needed by cargo-gpu
1 parent 17aa2f9 commit 9b29063

File tree

2 files changed

+6
-34
lines changed

2 files changed

+6
-34
lines changed

.nix/flake.lock

Lines changed: 1 addition & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.nix/flake.nix

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,23 @@
1717
inputs = {
1818
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
1919
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
20-
rust-overlay = {
21-
url = "github:oxalica/rust-overlay";
22-
inputs.nixpkgs.follows = "nixpkgs";
23-
};
2420
flake-utils.url = "github:numtide/flake-utils";
2521

2622
# This is used to provide a identical development shell at `shell.nix` for users that do not use flakes
2723
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
2824
};
2925

30-
outputs = { nixpkgs, nixpkgs-unstable, rust-overlay, flake-utils, ... }:
26+
outputs = { nixpkgs, nixpkgs-unstable, flake-utils, ... }:
3127
flake-utils.lib.eachDefaultSystem (system:
3228
let
33-
overlays = [ (import rust-overlay) ];
29+
overlays = [ ];
3430
pkgs = import nixpkgs {
3531
inherit system overlays;
3632
};
3733
pkgs-unstable = import nixpkgs-unstable {
3834
inherit system overlays;
3935
};
4036

41-
rustc-wasm = pkgs.rust-bin.stable.latest.default.override {
42-
targets = [ "wasm32-unknown-unknown" ];
43-
extensions = [ "rust-src" "rust-analyzer" "clippy" "cargo" ];
44-
};
45-
4637
libcef = pkgs.libcef.overrideAttrs (finalAttrs: previousAttrs: {
4738
version = "138.0.26";
4839
gitRevision = "84f2d27";
@@ -85,7 +76,7 @@
8576

8677
# Development tools that don't need to be in LD_LIBRARY_PATH
8778
buildTools = [
88-
rustc-wasm
79+
pkgs.rustup
8980
pkgs.nodejs
9081
pkgs.nodePackages.npm
9182
pkgs.binaryen
@@ -116,6 +107,8 @@
116107
devShells.default = pkgs.mkShell {
117108
packages = buildInputs ++ buildTools ++ devTools;
118109

110+
nativeBuildInputs = [ pkgs.rustup ];
111+
119112
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}:${libcefPath}";
120113
CEF_PATH = libcefPath;
121114
XDG_DATA_DIRS="${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS";

0 commit comments

Comments
 (0)