File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,17 @@ rec {
217217 bundleOnly = true ;
218218 } ;
219219 buildToml = readBuildConfig path ;
220- contents = builtins . map ( pkg : toString pkg ) ( builtins . attrValues extensions ) ;
220+ benchmarksPath = path + "/benchmarks" ;
221+ hasBenchmarks = builtins . pathExists benchmarksPath ;
222+ benchmarks =
223+ with lib . fileset ;
224+ toSource {
225+ root = path ;
226+ fileset = maybeMissing benchmarksPath ;
227+ } ;
228+ contents =
229+ builtins . map ( pkg : toString pkg ) ( builtins . attrValues extensions )
230+ ++ lib . optionals hasBenchmarks [ ( toString benchmarks ) ] ;
221231 in
222232 import ./join-paths {
223233 inherit pkgs contents ;
Original file line number Diff line number Diff line change 1616 "pkgs"
1717 "namePaths"
1818 ] ;
19- # Iterating over pairs in bash sucks, so let's generate
20- # the commands in Nix instead.
2119 copyPkg = pkg : ''
2220 cp -r ${ pkg } /* ${ placeholder "out" } /
2321 '' ;
Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ name = "kernels"
33version = " 0.12.2.dev0"
44description = " Download compute kernels"
55authors = [
6- { name = " OlivierDehaene" , email = " olivier@huggingface.co" },
76 { name = " Daniel de Kok" , email = " daniel@huggingface.co" },
87 { name = " David Holtz" , email = " david@huggingface.co" },
9- { name = " Nicolas Patry" , email = " nicolas@huggingface.co" },
108]
119license = { text = " Apache-2.0" }
1210readme = " README.md"
You can’t perform that action at this time.
0 commit comments