feat: nix direnv

This commit is contained in:
Laureηt 2022-12-28 17:55:58 +01:00
parent 52667c727a
commit e05df6256a
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
3 changed files with 15 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
.direnv
# https://github.com/github/gitignore/blob/main/Python.gitignore
# Basic .gitignore for a python repo.

12
shell.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [
poetry
python3
(python310Packages.opencv4.override {
enableGtk2 = true;
gtk2 = pkgs.gtk2;
})
];
}