diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-30 17:43:52 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-30 17:43:52 -0400 |
commit | accfd7ca0832dd7c3b4568f7835d2637910be99b (patch) | |
tree | dd05e3d83b76d99a5bd97437ca545cf012b0205f /pkgs/top-level/unix-tools.nix | |
parent | e500bb84090ddca3e213f4d6ced1f1647be486d6 (diff) |
unix-tools: get platforms from doubles
Diffstat (limited to 'pkgs/top-level/unix-tools.nix')
-rw-r--r-- | pkgs/top-level/unix-tools.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/unix-tools.nix b/pkgs/top-level/unix-tools.nix index 00edb7c09072..beb2a996a5ef 100644 --- a/pkgs/top-level/unix-tools.nix +++ b/pkgs/top-level/unix-tools.nix @@ -22,7 +22,7 @@ let in runCommand "${cmd}-${version}" { meta = { priority = 10; - platforms = map (n: { kernel.name = n; }) (attrNames providers); + platforms = lib.platforms.${stdenv.hostPlatform.parsed.kernel.name} or lib.platforms.all; }; passthru = { inherit provider; }; preferLocalBuild = true; |