iputils: format with nixpkgs-fmt

This commit is contained in:
Anthony Roussel 2023-01-12 13:14:55 +01:00
parent d4c1e368e1
commit 4d32358bea
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,6 +1,14 @@
{ lib, stdenv, fetchFromGitHub { lib
, meson, ninja, pkg-config, gettext, libxslt, docbook_xsl_ns , stdenv
, libcap, libidn2 , fetchFromGitHub
, meson
, ninja
, pkg-config
, gettext
, libxslt
, docbook_xsl_ns
, libcap
, libidn2
, iproute2 , iproute2
, apparmorRulesFromClosure , apparmorRulesFromClosure
}: }:
@ -16,7 +24,7 @@ stdenv.mkDerivation rec {
hash = "sha256-XVoQhdjBmEK8TbCpaKLjebPw7ZT8iEvyLJDTCkzezeE="; hash = "sha256-XVoQhdjBmEK8TbCpaKLjebPw7ZT8iEvyLJDTCkzezeE=";
}; };
outputs = ["out" "apparmor"]; outputs = [ "out" "apparmor" ];
# We don't have the required permissions inside the build sandbox: # We don't have the required permissions inside the build sandbox:
# /build/source/build/ping/ping: socket: Operation not permitted # /build/source/build/ping/ping: socket: Operation not permitted
@ -28,8 +36,8 @@ stdenv.mkDerivation rec {
"-DINSTALL_SYSTEMD_UNITS=true" "-DINSTALL_SYSTEMD_UNITS=true"
"-DSKIP_TESTS=${lib.boolToString (!doCheck)}" "-DSKIP_TESTS=${lib.boolToString (!doCheck)}"
] ]
# Disable idn usage w/musl (https://github.com/iputils/iputils/pull/111): # Disable idn usage w/musl (https://github.com/iputils/iputils/pull/111):
++ lib.optional stdenv.hostPlatform.isMusl "-DUSE_IDN=false"; ++ lib.optional stdenv.hostPlatform.isMusl "-DUSE_IDN=false";
nativeBuildInputs = [ meson ninja pkg-config gettext libxslt.bin docbook_xsl_ns ]; nativeBuildInputs = [ meson ninja pkg-config gettext libxslt.bin docbook_xsl_ns ];
buildInputs = [ libcap ] buildInputs = [ libcap ]
@ -58,13 +66,9 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/iputils/iputils";
changelog = "https://github.com/iputils/iputils/releases/tag/${version}";
description = "A set of small useful utilities for Linux networking"; description = "A set of small useful utilities for Linux networking";
inherit (src.meta) homepage;
changelog = "https://github.com/iputils/iputils/releases/tag/s${version}";
license = with licenses; [ gpl2Plus bsd3 ];
platforms = platforms.linux;
maintainers = with maintainers; [ primeos lheckemann ];
longDescription = '' longDescription = ''
A set of small useful utilities for Linux networking including: A set of small useful utilities for Linux networking including:
@ -73,5 +77,8 @@ stdenv.mkDerivation rec {
- ping: send ICMP ECHO_REQUEST to network hosts - ping: send ICMP ECHO_REQUEST to network hosts
- tracepath: traces path to a network host discovering MTU along this path - tracepath: traces path to a network host discovering MTU along this path
''; '';
license = with licenses; [ gpl2Plus bsd3 ];
platforms = platforms.linux;
maintainers = with maintainers; [ primeos lheckemann ];
}; };
} }