Skip to content

Commit

Permalink
devShell uses dependencies from package
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Aug 25, 2024
1 parent 5d83f5a commit 5d6f0fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
(system: nixpkgsFor.${system}.nixpkgs-fmt);

overlays.default = final: prev: {
devShell = final.callPackage nixos/devShell { };
devShell = final.callPackage nixos/devShell { inherit self; };
whisper_api = final.callPackage nixos/pkgs/whisper_api { inherit self; };
# Our code is not compatible with pydantic version 2 yet.
python3 = prev.python3.override {
Expand Down
12 changes: 3 additions & 9 deletions nixos/devShell/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
{ pkgs, ... }:
{ self, pkgs, ... }:
let
python-with-packages = pkgs.python3.withPackages (p: with p; [
fastapi
ffmpeg-python
openai-whisper
python-multipart
uvicorn
] ++ [
python-with-packages = pkgs.python3.withPackages (p: with p; [
# only needed for development
autopep8
httpx
]);
] ++ self.packages.${pkgs.system}.whisper_api.propagatedBuildInputs);
in
pkgs.mkShell {
buildInputs = with pkgs;[
Expand Down

0 comments on commit 5d6f0fb

Please sign in to comment.