File tree Expand file tree Collapse file tree 3 files changed +6
-101
lines changed Expand file tree Collapse file tree 3 files changed +6
-101
lines changed Original file line number Diff line number Diff line change 7
7
} :
8
8
9
9
let
10
- optionalInt = cond : x : if cond then x else 0 ;
10
+ optionalInt = cond : x : if cond then x else 0 ;
11
11
in
12
12
singularity-tools . buildImage rec {
13
13
inherit ( llama-cpp ) name ;
Original file line number Diff line number Diff line change 18
18
inputs = {
19
19
nixpkgs . url = "github:NixOS/nixpkgs/nixos-unstable" ;
20
20
flake-parts . url = "github:hercules-ci/flake-parts" ;
21
- nixfmt = {
22
- url = "github:piegamesde/nixfmt/rfc101-style" ;
23
- inputs . nixpkgs . follows = "nixpkgs" ;
24
- } ;
25
21
} ;
26
22
27
23
# There's an optional binary cache available. The details are below, but they're commented out.
111
107
# ```
112
108
#
113
109
# Cf. https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html?highlight=flake#flake-format
114
- flake . overlays . default =
115
- ( final : prev : {
110
+ flake . overlays . default = (
111
+ final : prev : {
116
112
llamaPackages = final . callPackage .devops/nix/scope.nix { inherit llamaVersion ; } ;
117
113
inherit ( final . llamaPackages ) llama-cpp ;
118
- } ) ;
114
+ }
115
+ ) ;
119
116
120
117
systems = [
121
118
"aarch64-darwin"
136
133
} :
137
134
{
138
135
# For standardised reproducible formatting with `nix fmt`
139
- # HELP: why does the per system formatter not work?
140
- # formatter = inputs.nixfmt.packages.${system}.nixfmt;
141
- formatter = if ( system == "x86_64-linux" ) then inputs . nixfmt . packages . ${ system } . nixfmt else null ;
136
+ formatter = pkgs . nixfmt-rfc-style ;
142
137
143
138
# Unlike `.#packages`, legacyPackages may contain values of
144
139
# arbitrary types (including nested attrsets) and may even throw
You can’t perform that action at this time.
0 commit comments