From 1eb8804635c64a028eca037a394d4b6931797a33 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Wed, 12 Aug 2020 14:47:17 -0700 Subject: [PATCH] add nix.shell for env setup --- nix.shell | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 nix.shell diff --git a/nix.shell b/nix.shell new file mode 100644 index 0000000000..1e75b7b6f5 --- /dev/null +++ b/nix.shell @@ -0,0 +1,42 @@ +let + moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); + nixpkgs = import { overlays = [ moz_overlay ]; }; + ruststable = (nixpkgs.latest.rustChannels.stable.rust); + + mach-nix = import ( + builtins.fetchGit { + url = "https://github.com/DavHau/mach-nix/"; + ref = "2.0.0"; + } + ); + + customPython = mach-nix.mkPython { + python = nixpkgs.python38; + requirements = '' + screed>=0.9 + cffi>=1.14.0 + numpy + matplotlib + scipy + deprecation>=2.0.6 + cachetools >=4,<5 + setuptools>=38.6.0 + milksnake + setuptools_scm>=3.2.0 + setuptools_scm_git_archive + pytest + hypothesis + ''; + }; + +in + with nixpkgs; + + nixpkgs.mkShell { + buildInputs = [ + customPython + git + stdenv + ruststable + ]; +}