unixtools: use real provider name instead of inaccurate version

The version "1003.1-2008" comes from IEEE Std but is not quite accurate.
Using the provider name could give us more info in store path.
This commit is contained in:
Monson Shao 2021-01-17 06:10:04 +08:00
parent 72a465f835
commit 5bfd6d4491
No known key found for this signature in database
GPG key ID: 163271C707982C65

View file

@ -19,7 +19,7 @@ let
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}" {
in runCommand "${cmd}-${provider.name}" {
meta = {
priority = 10;
platforms = lib.platforms.${stdenv.hostPlatform.parsed.kernel.name} or lib.platforms.all;
@ -43,7 +43,7 @@ let
# more is unavailable in darwin
# so we just use less
more_compat = runCommand "more-${version}" {} ''
more_compat = runCommand "more-${pkgs.less.name}" {} ''
mkdir -p $out/bin
ln -s ${pkgs.less}/bin/less $out/bin/more
'';