unix-tools: default when no provider exists

This commit is contained in:
Matthew Bauer 2019-06-04 22:45:11 -04:00 committed by GitHub
parent 2af9cabd0c
commit a08d462563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ let
version = "1003.1-2008";
singleBinary = cmd: providers: let
provider = providers.${stdenv.hostPlatform.parsed.kernel.name};
provider = providers.${stdenv.hostPlatform.parsed.kernel.name} or providers.linux;
bin = "${getBin provider}/bin/${cmd}";
manpage = "${getOutput "man" provider}/share/man/man1/${cmd}.1.gz";
in runCommand "${cmd}-${version}" {