diff options
author | Monson Shao <holymonson@gmail.com> | 2021-01-17 06:10:04 +0800 |
---|---|---|
committer | Monson Shao <holymonson@gmail.com> | 2021-01-17 13:11:31 +0800 |
commit | 5bfd6d44918c0a442baf4b085fd7349fcd18744f (patch) | |
tree | 317cd4f214e9a0117b6a96768b577254fb425f0b /pkgs/top-level/unixtools.nix | |
parent | 72a465f835cf7a69f85ce14dbd8b3449d3e504e3 (diff) |
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.
Diffstat (limited to 'pkgs/top-level/unixtools.nix')
-rw-r--r-- | pkgs/top-level/unixtools.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/top-level/unixtools.nix b/pkgs/top-level/unixtools.nix index b4f708ad56511..b7fea20b76bcc 100644 --- a/pkgs/top-level/unixtools.nix +++ b/pkgs/top-level/unixtools.nix @@ -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 ''; |