nix: adds just as dependency, and fixes tests by installing deepdog app locally

This commit is contained in:
2024-03-19 15:42:43 -05:00
parent 7950f19c2d
commit 731dabd74d

View File

@@ -15,6 +15,11 @@
poetry2nix = poetry2nixSrc.lib.mkPoetry2Nix { inherit pkgs; }; poetry2nix = poetry2nixSrc.lib.mkPoetry2Nix { inherit pkgs; };
in { in {
packages = { packages = {
deepdogApp = poetry2nix.mkPoetryApplication {
projectDir = self;
python = pkgs.python39;
preferWheels = true;
};
deepdogEnv = poetry2nix.mkPoetryEnv { deepdogEnv = poetry2nix.mkPoetryEnv {
projectDir = self; projectDir = self;
python = pkgs.python39; python = pkgs.python39;
@@ -29,6 +34,8 @@
buildInputs = [ buildInputs = [
pkgs.poetry pkgs.poetry
self.packages.${system}.deepdogEnv self.packages.${system}.deepdogEnv
self.packages.${system}.deepdogApp
pkgs.just
]; ];
shellHook = '' shellHook = ''
export DO_NIX_CUSTOM=1 export DO_NIX_CUSTOM=1