set up nix

This commit is contained in:
Nickiel12 2023-09-22 18:40:15 -07:00
parent 56b0f57af4
commit b265d2abd5
3 changed files with 11 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.direnv/*

9
shell.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
let
my-python-packages = ps: with ps; [
opencv4
numpy
# other python packages
];
my-python = pkgs.python3.withPackages my-python-packages;
in my-python.env