aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: b84497b37dd3b45cf5c01395853a65526246f83d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
let
  pkgs = import <nixpkgs> {};
in pkgs.mkShell {
	buildInputs = [
		(pkgs.python3.withPackages (python-pkgs: [python-pkgs.virtualenv]))
		pkgs.cairo
	];
	shellHook = ''
		export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.cairo}/lib"
		python -m venv "$PWD"/venv
		source "$PWD"/venv/bin/activate
	'';
}