Skip to content

Commit 036cba0

Browse files
SomeoneSergejordankanter
authored andcommitted
nix: add a comment on the many nixpkgs-with-cuda instances
1 parent 4899abe commit 036cba0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.devops/nix/nixpkgs-instances.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
{ system, ... }:
88
{
99
_module.args = {
10+
# Note: bringing up https://zimbatm.com/notes/1000-instances-of-nixpkgs
11+
# again, the below creates several nixpkgs instances which the
12+
# flake-centric CLI will be forced to evaluate e.g. on `nix flake show`.
13+
#
14+
# This is currently "slow" and "expensive", on a certain scale.
15+
# This also isn't "right" in that this hinders dependency injection at
16+
# the level of flake inputs. This might get removed in the foreseeable
17+
# future.
18+
#
19+
# Note that you can use these expressions without Nix
20+
# (`pkgs.callPackage ./devops/nix/scope.nix { }` is the entry point).
21+
1022
pkgsCuda = import inputs.nixpkgs {
1123
inherit system;
1224
# Ensure dependencies use CUDA consistently (e.g. that openmpi, ucc,

0 commit comments

Comments
 (0)