From e6ddab416c98f2e27665c1bed731863cce49357c Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Fri, 11 Jun 2021 02:57:41 -0400 Subject: [PATCH] feat(nix): add nix package management --- shell.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..e2c105e --- /dev/null +++ b/shell.nix @@ -0,0 +1,16 @@ +# https://github.com/DavHau/mach-nix/blob/master/examples.md +{ pkgs ? import {} }: +let + mach-nix = import ( + builtins.fetchGit { + url = "https://github.com/DavHau/mach-nix/"; + ref = "refs/tags/3.3.0"; + } + ) { + python = "python39"; + }; +in + +mach-nix.mkPythonShell { + requirements = builtins.readFile ./requirements.txt; +}