mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
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:
parent
72a465f835
commit
5bfd6d4491
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ let
|
||||||
provider = providers.${stdenv.hostPlatform.parsed.kernel.name} or providers.linux;
|
provider = providers.${stdenv.hostPlatform.parsed.kernel.name} or providers.linux;
|
||||||
bin = "${getBin provider}/bin/${cmd}";
|
bin = "${getBin provider}/bin/${cmd}";
|
||||||
manpage = "${getOutput "man" provider}/share/man/man1/${cmd}.1.gz";
|
manpage = "${getOutput "man" provider}/share/man/man1/${cmd}.1.gz";
|
||||||
in runCommand "${cmd}-${version}" {
|
in runCommand "${cmd}-${provider.name}" {
|
||||||
meta = {
|
meta = {
|
||||||
priority = 10;
|
priority = 10;
|
||||||
platforms = lib.platforms.${stdenv.hostPlatform.parsed.kernel.name} or lib.platforms.all;
|
platforms = lib.platforms.${stdenv.hostPlatform.parsed.kernel.name} or lib.platforms.all;
|
||||||
|
@ -43,7 +43,7 @@ let
|
||||||
|
|
||||||
# more is unavailable in darwin
|
# more is unavailable in darwin
|
||||||
# so we just use less
|
# so we just use less
|
||||||
more_compat = runCommand "more-${version}" {} ''
|
more_compat = runCommand "more-${pkgs.less.name}" {} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s ${pkgs.less}/bin/less $out/bin/more
|
ln -s ${pkgs.less}/bin/less $out/bin/more
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue