diff --git a/flake.nix b/flake.nix index fa90e6f..b0b6d26 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,7 @@ ]; in { - devShells.default = with pkgs; mkShellNoCC { + devShells.default = with pkgs; mkShell { packages = [ nil nixpkgs-fmt diff --git a/nix/rust-esp.nix b/nix/rust-esp.nix index 3cf93eb..3b4a370 100644 --- a/nix/rust-esp.nix +++ b/nix/rust-esp.nix @@ -2,6 +2,8 @@ , stdenv , fetchurl , zlib +, autoPatchelfHook +, pkgs }: let platform = { @@ -17,6 +19,12 @@ stdenv.mkDerivation rec { pname = "rust-esp"; version = "1.78.0.0"; + nativeBuildInputs = with pkgs; [ + autoPatchelfHook + libgcc + stdenv.cc.cc.lib + ]; + src = fetchurl { url = "https://github.com/esp-rs/rust-build/releases/download/v${version}/rust-${version}-${platform}.tar.xz"; sha256 = {