mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
unix-tools: default when no provider exists
This commit is contained in:
parent
2af9cabd0c
commit
a08d462563
@ -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}" {
|
||||
|
Loading…
Reference in New Issue
Block a user