unixtools: fixup hexdump issue

utillinux puts everything in ".bin" output. We need to use lib.getBin to get it correctly.
This commit is contained in:
Matthew Justin Bauer
2018-04-13 11:10:36 -05:00
committed by GitHub
parent f1fb3651d8
commit 293e18d9c4

View File

@@ -1,4 +1,4 @@
{ pkgs, buildEnv, runCommand, hostPlatform }:
{ pkgs, buildEnv, runCommand, hostPlatform, lib }:
# These are some unix tools that are commonly included in the /usr/bin
# and /usr/sbin directory under more normal distributions. Along with
@@ -13,7 +13,7 @@
let
singleBinary = cmd: providers: let
provider = "${providers.${hostPlatform.parsed.kernel.name} or "missing-package"}/bin/${cmd}";
provider = "${lib.getBin providers.${hostPlatform.parsed.kernel.name}}/bin/${cmd}";
in runCommand cmd {
meta.platforms = map (n: { kernel.name = n; }) (pkgs.lib.attrNames providers);
} ''