Skip to content

Commit

Permalink
module uses nixpkgs from flake input
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Feb 10, 2024
1 parent 24d1fcc commit bd15170
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@
whisper_api = {
imports = [ ./nixos/module ];
nixpkgs.overlays = [
(final: prev: {
whisper_api = with final; pkgs.python3Packages.callPackage nixos/pkgs/whisper_api { inherit self; };
whisper_api_withCUDA = nixpkgsCUDA.python3Packages.callPackage nixos/pkgs/whisper_api { inherit self; };
})
(final: prev:
let system = prev.system; in
{
whisper_api = nixpkgsFor.${system}.python3Packages.callPackage nixos/pkgs/whisper_api { inherit self; };
whisper_api_withCUDA = nixpkgsCUDA.python3Packages.callPackage nixos/pkgs/whisper_api { inherit self; };
})
];
};
};
Expand Down

0 comments on commit bd15170

Please sign in to comment.