Skip to content

Commit

Permalink
Merge pull request #1 from hs3city/add-nix
Browse files Browse the repository at this point in the history
Add Nix configuration
  • Loading branch information
DoomHammer authored Feb 21, 2023
2 parents e05062d + 057790e commit 3a21663
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use_nix
23 changes: 23 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ pkgs ? import (
builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/22.11.tar.gz";
sha256 = "11w3wn2yjhaa5pv20gbfbirvjq6i3m7pqrq2msf0g7cv44vijwgw";
}
) {} }:

with pkgs;

mkShell {
buildInputs = [
(python310.withPackages (ps: with ps; [
pip
virtualenv
]))
];
shellHook = ''
virtualenv venv
source venv/bin/activate
pip install platformio
pio pkg update
'';
}

0 comments on commit 3a21663

Please sign in to comment.