Add nix shell and use it in the envrc

This commit is contained in:
Olivier 'reivilibre' 2022-08-30 23:09:36 +01:00
parent 703a86cd0f
commit 24189b9ef6
2 changed files with 16 additions and 0 deletions

1
.envrc
View File

@ -1 +1,2 @@
use_nix
layout poetry layout poetry

15
shell.nix Normal file
View File

@ -0,0 +1,15 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.python3
pkgs.poetry
pkgs.xdotool
];
# DOES NOT WORK. LD_LIBRARY_PATH="${pkgs.xdotool}/lib";
# (no longer needed since we don't use libxdo; just use xdotool)
}