File tree Expand file tree Collapse file tree 5 files changed +231
-248
lines changed Expand file tree Collapse file tree 5 files changed +231
-248
lines changed Original file line number Diff line number Diff line change 2
2
perSystem =
3
3
{ config , lib , ... } :
4
4
{
5
- devShells =
6
- lib . concatMapAttrs
7
- ( name : package : {
8
- ${ name } = package . passthru . shell ;
9
- ${ name + "-extra" } = package . passthru . shell-extra ;
10
- } )
11
- config . packages ;
5
+ devShells = lib . concatMapAttrs ( name : package : {
6
+ ${ name } = package . passthru . shell ;
7
+ ${ name + "-extra" } = package . passthru . shell-extra ;
8
+ } ) config . packages ;
12
9
} ;
13
10
}
Original file line number Diff line number Diff line change 26
26
config . cudaSupport = true ;
27
27
config . allowUnfreePredicate =
28
28
p :
29
- builtins . all
30
- (
31
- license :
32
- license . free
33
- || builtins . elem license . shortName [
34
- "CUDA EULA"
35
- "cuDNN EULA"
36
- ]
37
- )
38
- ( p . meta . licenses or [ p . meta . license ] ) ;
29
+ builtins . all (
30
+ license :
31
+ license . free
32
+ || builtins . elem license . shortName [
33
+ "CUDA EULA"
34
+ "cuDNN EULA"
35
+ ]
36
+ ) ( p . meta . licenses or [ p . meta . license ] ) ;
39
37
} ;
40
38
# Ensure dependencies use ROCm consistently
41
39
pkgsRocm = import inputs . nixpkgs {
Original file line number Diff line number Diff line change 1
- { lib
2
- , llamaVersion
3
- , python3
4
- } @inputs :
1
+ {
2
+ lib ,
3
+ llamaVersion ,
4
+ python3 ,
5
+ } @inputs :
5
6
6
7
python3 . pkgs . buildPythonPackage rec {
7
8
pname = "gguf" ;
8
9
version = llamaVersion ;
9
10
pyproject = true ;
10
- nativeBuildInputs = with python3 . pkgs ; [
11
- poetry-core
12
- ] ;
13
- propagatedBuildInputs = with python3 . pkgs ; [
14
- numpy
15
- ] ;
11
+ nativeBuildInputs = with python3 . pkgs ; [ poetry-core ] ;
12
+ propagatedBuildInputs = with python3 . pkgs ; [ numpy ] ;
16
13
src = lib . cleanSource ../../gguf-py ;
17
14
doCheck = false ;
18
15
meta = with lib ; {
You can’t perform that action at this time.
0 commit comments