Skip to content
Snippets Groups Projects
Select Git revision
  • b40f89dbe505af643a74f2e151d474c23e20450f
  • master default protected
  • 5-implement-client-c-in-plain-rust
  • 4-fix-card10-l0dable-on-crates-io
  • build-from-root
5 results

shell.nix

Blame
  • Forked from Astro / rust-card10
    Source project has a limited visibility.
    shell.nix 401 B
    { pkgs ? import <nixpkgs> {} }:
    
    with pkgs;
    with import ./default.nix;
    
    stdenv.mkDerivation {
      name = "env";
      buildInputs = [
        gdb
        glibc_multi
        rust
        pkgsCross.arm-embedded.stdenv.cc
        openocd
      ];
    
      # Set Environment Variables
      RUST_BACKTRACE = 1;
    
      shellHook = ''
        export LIBCLANG_PATH=${llvmPackages.libclang}/lib
        echo "Run 'cd example && cargo build --release'"
      '';
    }