iperf3: symlink manpage to iperf & split man output
Closes: https://github.com/NixOS/nixpkgs/issues/62255
This commit is contained in:
parent
19195b212e
commit
347bf168da
@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
|
patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=99ec9e1c84e338629cf1b27b0fdc808bde4d8564";
|
url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=99ec9e1c84e338629cf1b27b0fdc808bde4d8564";
|
||||||
@ -19,7 +21,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
ln -s iperf3 $out/bin/iperf
|
ln -s $out/bin/iperf3 $out/bin/iperf
|
||||||
|
ln -s $man/share/man/man1/iperf3.1 $man/share/man/man1/iperf.1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user