summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-11-28 15:58:33 +0100
committerJulian T <julian@jtle.dk>2021-12-06 18:12:07 +0100
commit94e342bb889b25ab5f6241acb9ebb633415e9c46 (patch)
tree43d2bfcbe419ba0e2bc890b5ca6aa5c3ddd2d9f9
parentcff294c4eb6a6608df81e291900f2a479fa863a5 (diff)
Improve shell file a bit
-rw-r--r--shell.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/shell.nix b/shell.nix
index 3edf0b2..0cf042f 100644
--- a/shell.nix
+++ b/shell.nix
@@ -1,7 +1,13 @@
-{ pkgs ? import <nixpkgs> {}, pythonPackages ? pkgs.python38Packages }:
+{ pkgs ? import <nixpkgs> {}
+, python ? pkgs.python38 }:
+let
+ pythonEnv = python.withPackages (pkgs: with pkgs; [
+ jinja2 pillow pyyaml
+ ]);
+in
pkgs.mkShell {
- buildInputs = with pythonPackages; [
- jinja2 pillow pyyaml pkgs.exiftool
+ buildInputs = [
+ pythonEnv pkgs.exiftool
];
}