File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
lib ,
3
3
llamaVersion ,
4
- python3 ,
4
+ numpy ,
5
+ poetry-core ,
6
+ buildPythonPackage ,
5
7
} @inputs :
6
8
7
- python3 . pkgs . buildPythonPackage rec {
9
+ buildPythonPackage {
8
10
pname = "gguf" ;
9
11
version = llamaVersion ;
10
12
pyproject = true ;
11
- nativeBuildInputs = with python3 . pkgs ; [ poetry-core ] ;
12
- propagatedBuildInputs = with python3 . pkgs ; [ numpy ] ;
13
+ nativeBuildInputs = [ poetry-core ] ;
14
+ propagatedBuildInputs = [ numpy ] ;
13
15
src = lib . cleanSource ../../gguf-py ;
14
16
doCheck = false ;
15
17
meta = with lib ; {
Original file line number Diff line number Diff line change 1
1
{
2
2
lib ,
3
3
newScope ,
4
+ python3 ,
4
5
llamaVersion ? "0.0.0" ,
5
6
} :
6
7
8
+ let
9
+ pythonPackages = python3 . pkgs ;
10
+ buildPythonPackage = pythonPackages . buildPythonPackage ;
11
+ numpy = pythonPackages . numpy ;
12
+ poetry-core = pythonPackages . poetry-core ;
13
+ in
14
+
7
15
# We're using `makeScope` instead of just writing out an attrset
8
16
# because it allows users to apply overlays later using `overrideScope'`.
9
17
# Cf. https://noogle.dev/f/lib/makeScope
10
18
11
19
lib . makeScope newScope ( self : {
12
20
inherit llamaVersion ;
13
- gguf-py = self . callPackage ./package-gguf-py.nix { } ;
21
+ pp = python3 . pkgs ;
22
+ gguf-py = self . callPackage ./package-gguf-py.nix { inherit buildPythonPackage ; } ;
14
23
llama-cpp = self . callPackage ./package.nix { } ;
15
24
docker = self . callPackage ./docker.nix { } ;
16
25
docker-min = self . callPackage ./docker.nix { interactive = false ; } ;
You can’t perform that action at this time.
0 commit comments