mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
932941b79c
- remove trailing whitespace - use spaces for indentation
9 lines
267 B
Nix
9 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);
|
|
}
|