From f9ccbf3e3f5be89c2a6044a5859f249e3471b905 Mon Sep 17 00:00:00 2001 From: DavHau Date: Sun, 3 Sep 2023 14:30:17 +0200 Subject: [PATCH] feat(pip): add .devShell attribute to package --- modules/dream2nix/pip/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/dream2nix/pip/default.nix b/modules/dream2nix/pip/default.nix index 8e46d877..507e874f 100644 --- a/modules/dream2nix/pip/default.nix +++ b/modules/dream2nix/pip/default.nix @@ -66,6 +66,7 @@ bash coreutils gawk + mkShell path stdenv unzip @@ -129,5 +130,13 @@ in { in l.attrValues (l.mapAttrs (name: _: cfg.drvs.${name}.public.out) rootDeps); }; + + public.devShell = config.deps.mkShell { + inherit (config.mkDerivation) buildInputs nativeBuildInputs; + packages = [ + (config.deps.python.withPackages + (ps: config.mkDerivation.propagatedBuildInputs)) + ]; + }; }; }