cli: get optional deps from our own flake

This ensures we actually test if all those binaries build
This commit is contained in:
Jörg Thalheim
2023-07-26 09:27:48 +02:00
parent ed474457b3
commit 09cc79867d
6 changed files with 46 additions and 34 deletions

View File

@@ -1,10 +1,9 @@
{ pkgs }:
{ self, clan, pkgs }:
let
package = pkgs.callPackage ./default.nix { };
pythonWithDeps = pkgs.python3.withPackages (
ps:
package.propagatedBuildInputs
++ package.devDependencies
clan.propagatedBuildInputs
++ clan.devDependencies
++ [
ps.pip
]
@@ -19,7 +18,7 @@ pkgs.mkShell {
pythonWithDeps
];
# sets up an editable install and add enty points to $PATH
CLAN_NIXPKGS = pkgs.path;
CLAN_FLAKE = self;
shellHook = ''
tmp_path=$(realpath ./.pythonenv)
repo_root=$(realpath .)