Skip to content

Commit 7ff710f

Browse files
committed
Make legacyPackages look like pkgs in a nixos module
This change the package set in `legacyPackages.<system>` look the same as it would in a nixos module using jetpack-nixos, so the same `pkgs.nvidia-jetpack` is present in both.
1 parent 6ae4ce1 commit 7ff710f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

flake.nix

+6-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
self.legacyPackages;
5858

5959
# Not everything here should be cross-compiled to aarch64-linux
60-
legacyPackages.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.callPackage ./default.nix { };
61-
legacyPackages.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.callPackage ./default.nix { };
60+
legacyPackages = nixpkgs.lib.genAttrs
61+
[ "x86_64-linux" "aarch64-linux" ]
62+
(system: import nixpkgs {
63+
inherit system;
64+
overlays = [ self.overlays.default ];
65+
});
6266
};
6367
}

0 commit comments

Comments
 (0)