From 967e35472f1735ef6529826409bd6f2030d715dc Mon Sep 17 00:00:00 2001 From: shimun Date: Sun, 20 Sep 2020 14:18:05 +0200 Subject: [PATCH] shell --- shell.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..72b2be6 --- /dev/null +++ b/shell.nix @@ -0,0 +1,13 @@ +let + nixpkgs_tar = fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/20.03.tar.gz"; sha256 = "0182ys095dfx02vl2a20j1hz92dx3mfgz2a6fhn31bqlp1wa8hlq"; }; + pkgs = import "${nixpkgs_tar}" {}; + pyPackages = (python-packages: with python-packages; ([ + solo-python pytest + ] ++ (with builtins; map (d: getAttr d python-packages) (filter (d: stringLength d > 0) (pkgs.lib.splitString "\n" (builtins.readFile ./tools/requirements.txt)))))); + python-with-my-packages = pkgs.python3.withPackages pyPackages; +in +with pkgs; +stdenv.mkDerivation { + name = "solo"; + buildInputs = [ gnumake gcc gcc-arm-embedded-8 python-with-my-packages ]; +}