Skip to content
Snippets Groups Projects
Verified Commit f6772824 authored by Legy (Beini)'s avatar Legy (Beini)
Browse files

Add nixos support and move scripts to bin/

parent 4f1b3ad1
No related branches found
No related tags found
No related merge requests found
.envrc 0 → 100644
PATH_add bin
export IDF_PATH=$PWD/esp-idf
export IDF_TOOLS_PATH=$IDF_PATH/tools
#!/usr/bin/env nix-shell
#!nix-shell --pure --keep IDF_PATH -i zsh -p zsh gnused
sed -ir 's|^#!/bin/bash|#!/usr/bin/env bash|' $IDF_PATH/tools/kconfig/lxdialog/check-lxdialog.sh
File moved
File moved
......@@ -2,6 +2,21 @@
let
inherit (nixpkgs) pkgs;
# esp-idf as of Nov 2019 requires pyparsing < 2.4
python2 = let
packageOverrides = self: super: {
pyparsing = super.pyparsing.overridePythonAttrs( old: rec {
version = "2.3.1";
src = super.fetchPypi {
pname="pyparsing";
inherit version;
sha256="66c9268862641abcac4a96ba74506e594c884e3f57690a696d21ad8210ed667a";
};
});
};
in pkgs.python2.override{inherit packageOverrides; self=python2;};
in
pkgs.stdenv.mkDerivation {
......@@ -15,6 +30,6 @@ pkgs.stdenv.mkDerivation {
shellHook = ''
export NIX_CFLAGS_LINK=-lncurses
export IDF_PATH=./esp-idf
export IDF_TOOLS_PATH=$IDF_PATH/tools
'';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment