mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
8d65e832f0
Emulators form a class by themselves. So, they should be moved to applications/.
10 lines
267 B
Nix
10 lines
267 B
Nix
{ lib }:
|
|
rec {
|
|
toPackages = pkgNames: pkgs:
|
|
map (pn: lib.getAttr pn pkgs) pkgNames;
|
|
toBuildInputs = pkgArches: archPkgs:
|
|
lib.concatLists (map archPkgs pkgArches);
|
|
mkBuildInputs = pkgArches: pkgNames:
|
|
toBuildInputs pkgArches (toPackages pkgNames);
|
|
}
|