summary refs log tree commit diff
path: root/pkgs/top-level/unix-tools.nix
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-04-13 11:10:36 -0500
committerGitHub <noreply@github.com>2018-04-13 11:10:36 -0500
commit293e18d9c4996f5884ceeda572927682591a9b2c (patch)
treeb05d90057950013263e7c3fffa90fe182e0e715d /pkgs/top-level/unix-tools.nix
parentf1fb3651d87f992879ac9e9c0c561c9c0421c0cc (diff)
downloadnixpkgs-293e18d9c4996f5884ceeda572927682591a9b2c.tar
nixpkgs-293e18d9c4996f5884ceeda572927682591a9b2c.tar.gz
nixpkgs-293e18d9c4996f5884ceeda572927682591a9b2c.tar.bz2
nixpkgs-293e18d9c4996f5884ceeda572927682591a9b2c.tar.lz
nixpkgs-293e18d9c4996f5884ceeda572927682591a9b2c.tar.xz
nixpkgs-293e18d9c4996f5884ceeda572927682591a9b2c.tar.zst
nixpkgs-293e18d9c4996f5884ceeda572927682591a9b2c.zip
unixtools: fixup hexdump issue
utillinux puts everything in ".bin" output. We need to use lib.getBin to get it correctly.
Diffstat (limited to 'pkgs/top-level/unix-tools.nix')
-rw-r--r--pkgs/top-level/unix-tools.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/top-level/unix-tools.nix b/pkgs/top-level/unix-tools.nix
index 439395efdf5..1a2f7270e0e 100644
--- a/pkgs/top-level/unix-tools.nix
+++ b/pkgs/top-level/unix-tools.nix
@@ -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);
     } ''