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