Skip to content

Commit 75bfbd5

Browse files
committed
nix: switch from rust-overlay to rustup, needed by cargo-gpu
1 parent 2eff3e1 commit 75bfbd5

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
@@ -16,32 +16,23 @@
1616
inputs = {
1717
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
1818
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
19-
rust-overlay = {
20-
url = "github:oxalica/rust-overlay";
21-
inputs.nixpkgs.follows = "nixpkgs";
22-
};
2319
flake-utils.url = "github:numtide/flake-utils";
2420

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

29-
outputs = { nixpkgs, nixpkgs-unstable, rust-overlay, flake-utils, ... }:
25+
outputs = { nixpkgs, nixpkgs-unstable, flake-utils, ... }:
3026
flake-utils.lib.eachDefaultSystem (system:
3127
let
32-
overlays = [ (import rust-overlay) ];
28+
overlays = [ ];
3329
pkgs = import nixpkgs {
3430
inherit system overlays;
3531
};
3632
pkgs-unstable = import nixpkgs-unstable {
3733
inherit system overlays;
3834
};
3935

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

8576
# Development tools that don't need to be in LD_LIBRARY_PATH
8677
buildTools = [
87-
rustc-wasm
78+
pkgs.rustup
8879
pkgs.nodejs
8980
pkgs.nodePackages.npm
9081
pkgs.binaryen
@@ -115,6 +106,8 @@
115106
devShells.default = pkgs.mkShell {
116107
packages = buildInputs ++ buildTools ++ devTools;
117108

109+
nativeBuildInputs = [ pkgs.rustup ];
110+
118111
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}:${libcefPath}";
119112
CEF_PATH = libcefPath;
120113
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)