~ruther/vhdl-i2c

ref: b1f70489999e3922af2a934aa5a477a7b477484d vhdl-i2c/mcu_tests/slave_counter/flake.nix -rw-r--r-- 687 bytes
b1f70489 — Rutherther tests: add possibility to check sda stability in mcu_slave 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    rust-overlay.url = "github:oxalica/rust-overlay";
  };

  outputs = { self, nixpkgs, rust-overlay }: let
    system = "x86_64-linux";
    pkgs = import nixpkgs {
      inherit system;
      overlays = [rust-overlay.overlays.default];
    };

    toolchain = pkgs.rust-bin.fromRustupToolchainFile ./toolchain.toml;
  in {
    devShells.${system}.default = pkgs.mkShell {
      packages = [
        toolchain
        pkgs.rust-analyzer-unwrapped

        pkgs.openocd
        pkgs.gcc-arm-embedded
        pkgs.probe-rs
      ];

      RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";
    };
  };
}
Do not follow this link