|
16 | 16 | inputs = { |
17 | 17 | nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
18 | 18 | nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; |
19 | | - rust-overlay = { |
20 | | - url = "github:oxalica/rust-overlay"; |
21 | | - inputs.nixpkgs.follows = "nixpkgs"; |
22 | | - }; |
23 | 19 | flake-utils.url = "github:numtide/flake-utils"; |
24 | 20 |
|
25 | 21 | # This is used to provide a identical development shell at `shell.nix` for users that do not use flakes |
26 | 22 | flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"; |
27 | 23 | }; |
28 | 24 |
|
29 | | - outputs = { nixpkgs, nixpkgs-unstable, rust-overlay, flake-utils, ... }: |
| 25 | + outputs = { nixpkgs, nixpkgs-unstable, flake-utils, ... }: |
30 | 26 | flake-utils.lib.eachDefaultSystem (system: |
31 | 27 | let |
32 | | - overlays = [ (import rust-overlay) ]; |
| 28 | + overlays = [ ]; |
33 | 29 | pkgs = import nixpkgs { |
34 | 30 | inherit system overlays; |
35 | 31 | }; |
36 | 32 | pkgs-unstable = import nixpkgs-unstable { |
37 | 33 | inherit system overlays; |
38 | 34 | }; |
39 | 35 |
|
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 | | - |
45 | 36 | libcef = pkgs.libcef.overrideAttrs (finalAttrs: previousAttrs: { |
46 | 37 | version = "138.0.26"; |
47 | 38 | gitRevision = "84f2d27"; |
|
84 | 75 |
|
85 | 76 | # Development tools that don't need to be in LD_LIBRARY_PATH |
86 | 77 | buildTools = [ |
87 | | - rustc-wasm |
| 78 | + pkgs.rustup |
88 | 79 | pkgs.nodejs |
89 | 80 | pkgs.nodePackages.npm |
90 | 81 | pkgs.binaryen |
|
115 | 106 | devShells.default = pkgs.mkShell { |
116 | 107 | packages = buildInputs ++ buildTools ++ devTools; |
117 | 108 |
|
| 109 | + nativeBuildInputs = [ pkgs.rustup ]; |
| 110 | + |
118 | 111 | LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}:${libcefPath}"; |
119 | 112 | CEF_PATH = libcefPath; |
120 | 113 | 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