]> patrickod personal git archive - keywing-rs.git/blob - shell.nix
2021 nix flake updates & some minor cleanup
[keywing-rs.git] / shell.nix
1 let
2   nixpkgs = fetchGit {
3     url = "https://github.com/patrickod/nixpkgs.git";
4     rev = "8bb6ca5f0a93bb0b9264b50a8c56431c7c7cc591";
5     ref = "personal";
6   };
7
8   mozilla-overlay =
9     import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
10
11   pkgs = import nixpkgs {
12     overlays = [ mozilla-overlay ];
13   };
14
15   targets = [
16     "x86_64-unknown-linux-gnu"
17     "thumbv7em-none-eabihf"
18   ];
19
20 in
21   pkgs.mkShell {
22     buildInputs = with pkgs; [
23       (rustChannels.stable.rust.override {
24         targets = targets;
25         extensions = [
26           "rust-src"
27           "rust-analysis"
28           "rls-preview"
29         ];
30       })
31       gcc-arm-embedded
32       cargo-hf2
33       rustup
34     ];
35   }