mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
10 lines
269 B
Nix
10 lines
269 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);
|
||
|
}
|