Skip to content

Commit

Permalink
Make legacyPackages look like pkgs in a nixos module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmbaur committed Mar 26, 2024
1 parent 6ae4ce1 commit 7ff710f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
self.legacyPackages;

# Not everything here should be cross-compiled to aarch64-linux
legacyPackages.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.callPackage ./default.nix { };
legacyPackages.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.callPackage ./default.nix { };
legacyPackages = nixpkgs.lib.genAttrs
[ "x86_64-linux" "aarch64-linux" ]
(system: import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
});
};
}

0 comments on commit 7ff710f

Please sign in to comment.