diff options
author | Anthony Roussel <anthony@roussel.dev> | 2023-01-12 13:14:55 +0100 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2023-01-13 17:25:52 +0100 |
commit | 4d32358bea2b91c5bd7b6962366c2a0d6b1c79e0 (patch) | |
tree | 4e60e49268e481a6cd4db9cbb2b65437f493a729 /pkgs/os-specific/linux/iputils/default.nix | |
parent | d4c1e368e1ee945f75a2fb13e3166aa4d2f8c414 (diff) | |
download | nixpkgs-4d32358bea2b91c5bd7b6962366c2a0d6b1c79e0.tar nixpkgs-4d32358bea2b91c5bd7b6962366c2a0d6b1c79e0.tar.gz nixpkgs-4d32358bea2b91c5bd7b6962366c2a0d6b1c79e0.tar.bz2 nixpkgs-4d32358bea2b91c5bd7b6962366c2a0d6b1c79e0.tar.lz nixpkgs-4d32358bea2b91c5bd7b6962366c2a0d6b1c79e0.tar.xz nixpkgs-4d32358bea2b91c5bd7b6962366c2a0d6b1c79e0.tar.zst nixpkgs-4d32358bea2b91c5bd7b6962366c2a0d6b1c79e0.zip |
iputils: format with nixpkgs-fmt
Diffstat (limited to 'pkgs/os-specific/linux/iputils/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/iputils/default.nix | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/pkgs/os-specific/linux/iputils/default.nix b/pkgs/os-specific/linux/iputils/default.nix index 80500ceedac..cdaf9b9bbb4 100644 --- a/pkgs/os-specific/linux/iputils/default.nix +++ b/pkgs/os-specific/linux/iputils/default.nix @@ -1,6 +1,14 @@ -{ lib, stdenv, fetchFromGitHub -, meson, ninja, pkg-config, gettext, libxslt, docbook_xsl_ns -, libcap, libidn2 +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, pkg-config +, gettext +, libxslt +, docbook_xsl_ns +, libcap +, libidn2 , iproute2 , apparmorRulesFromClosure }: @@ -16,7 +24,7 @@ stdenv.mkDerivation rec { hash = "sha256-XVoQhdjBmEK8TbCpaKLjebPw7ZT8iEvyLJDTCkzezeE="; }; - outputs = ["out" "apparmor"]; + outputs = [ "out" "apparmor" ]; # We don't have the required permissions inside the build sandbox: # /build/source/build/ping/ping: socket: Operation not permitted @@ -28,8 +36,8 @@ stdenv.mkDerivation rec { "-DINSTALL_SYSTEMD_UNITS=true" "-DSKIP_TESTS=${lib.boolToString (!doCheck)}" ] - # Disable idn usage w/musl (https://github.com/iputils/iputils/pull/111): - ++ lib.optional stdenv.hostPlatform.isMusl "-DUSE_IDN=false"; + # Disable idn usage w/musl (https://github.com/iputils/iputils/pull/111): + ++ lib.optional stdenv.hostPlatform.isMusl "-DUSE_IDN=false"; nativeBuildInputs = [ meson ninja pkg-config gettext libxslt.bin docbook_xsl_ns ]; buildInputs = [ libcap ] @@ -58,13 +66,9 @@ stdenv.mkDerivation rec { ''; 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"; - 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 = '' 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 - 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 ]; }; } |