Skip to content

Commit 7efb80d

Browse files
committed
style: format with nixfmt/rfc101-style
1 parent 3bd9a34 commit 7efb80d

File tree

5 files changed

+231
-248
lines changed

5 files changed

+231
-248
lines changed

.devops/nix/devshells.nix

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
perSystem =
33
{ config, lib, ... }:
44
{
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;
129
};
1310
}

.devops/nix/nixpkgs-instances.nix

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,14 @@
2626
config.cudaSupport = true;
2727
config.allowUnfreePredicate =
2828
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 ]);
3937
};
4038
# Ensure dependencies use ROCm consistently
4139
pkgsRocm = import inputs.nixpkgs {

.devops/nix/package-gguf-py.nix

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
{ lib
2-
, llamaVersion
3-
, python3
4-
} @inputs:
1+
{
2+
lib,
3+
llamaVersion,
4+
python3,
5+
}@inputs:
56

67
python3.pkgs.buildPythonPackage rec {
78
pname = "gguf";
89
version = llamaVersion;
910
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 ];
1613
src = lib.cleanSource ../../gguf-py;
1714
doCheck = false;
1815
meta = with lib; {

0 commit comments

Comments
 (0)