From b265d2abd59f1162022974c320f12e37aa386e7c Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 22 Sep 2023 18:40:15 -0700 Subject: [PATCH] set up nix --- .envrc | 1 + .gitignore | 1 + shell.nix | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8361884 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.direnv/* diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..b174e44 --- /dev/null +++ b/shell.nix @@ -0,0 +1,9 @@ +{ pkgs ? import {} }: +let + my-python-packages = ps: with ps; [ + opencv4 + numpy + # other python packages + ]; + my-python = pkgs.python3.withPackages my-python-packages; +in my-python.env