mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 23:57:59 +00:00

After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dhcping";
|
|
version = "1.2";
|
|
|
|
src = fetchurl {
|
|
sha256 = "0sk4sg3hn88n44dxikipf3ggfj3ixrp22asb7nry9p0bkfaqdvrj";
|
|
url = "https://www.mavetju.org/download/dhcping-${version}.tar.gz";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Send DHCP request to find out if a DHCP server is running";
|
|
longDescription = ''
|
|
dhcping sends either a DHCPREQUEST or DHCPINFORM packet to the server
|
|
and waits for an answer. Then, if a DHCPREQUEST was send, it will send
|
|
a DHCPRELEASE back to the server.
|
|
|
|
This program should be installed setuid root or ran by root only, as it
|
|
requires the privileges to bind itself to port 68 (bootpc). Root
|
|
privileges are dropped as soon as the program has bound itself to that
|
|
port.
|
|
'';
|
|
homepage = "http://www.mavetju.org/unix/general.php";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
mainProgram = "dhcping";
|
|
};
|
|
}
|