mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
util-linux: add hd symlink for hexdump --canonical
As mentioned in the man page, `hd` is a shorthand for `hexdump
--canonical`. Shell completion (at least in bash) works without any
additional modifications.
In nixpkgs, hd is offered by busybox but not util-linux so far. Other
distros, such as Debian make hd available through a similar
implementation[1].
[1]: 4ccecb3e6d/debian/bsdextrautils.links
This commit is contained in:
committed by
Bjørn Forsman
parent
1d7f5c818a
commit
70f855d67d
@@ -109,6 +109,9 @@ stdenv.mkDerivation rec {
|
||||
ln -svf "$swap/bin/"* $bin/bin/
|
||||
'' + ''
|
||||
|
||||
ln -svf "$bin/bin/hexdump" "$bin/bin/hd"
|
||||
ln -svf "$man/share/man/man1/hexdump.1" "$man/share/man/man1/hd.1"
|
||||
|
||||
installShellCompletion --bash bash-completion/*
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user