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