push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,82 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
udev,
freebsd,
runtimeShellPackage,
runtimeShell,
nixosTests,
# Always tries to do dynamic linking for udev.
withUdev ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isStatic,
enablePrivSep ? false,
}:
stdenv.mkDerivation rec {
pname = "dhcpcd";
version = "10.2.4";
src = fetchFromGitHub {
owner = "NetworkConfiguration";
repo = "dhcpcd";
rev = "v${version}";
sha256 = "sha256-ysaKgF4Cu/S6yhSn/4glA0+Ey54KNp3/1Oh82yE0/PY=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
runtimeShellPackage # So patchShebangs finds a bash suitable for the installed scripts
]
++ lib.optionals withUdev [
udev
]
++ lib.optionals stdenv.hostPlatform.isFreeBSD [
freebsd.libcapsicum
freebsd.libcasper
];
postPatch = ''
substituteInPlace hooks/dhcpcd-run-hooks.in --replace /bin/sh ${runtimeShell}
'';
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--disable-privsep"
"--dbdir=/var/lib/dhcpcd"
"--with-default-hostname=nixos"
(lib.enableFeature enablePrivSep "privsep")
]
++ lib.optional enablePrivSep "--privsepuser=dhcpcd";
makeFlags = [ "PREFIX=${placeholder "out"}" ];
# Hack to make installation succeed. dhcpcd will still use /var/lib
# at runtime.
installFlags = [
"DBDIR=$(TMPDIR)/db"
"SYSCONFDIR=${placeholder "out"}/etc"
];
# Check that the udev plugin got built.
postInstall = lib.optionalString withUdev "[ -e ${placeholder "out"}/lib/dhcpcd/dev/udev.so ]";
passthru.tests = {
inherit (nixosTests.networking.scripted)
macvlan
dhcpSimple
dhcpHostname
dhcpOneIf
;
};
meta = with lib; {
description = "Client for the Dynamic Host Configuration Protocol (DHCP)";
homepage = "https://roy.marples.name/projects/dhcpcd";
platforms = platforms.linux ++ platforms.freebsd ++ platforms.openbsd;
license = licenses.bsd2;
maintainers = [ ];
mainProgram = "dhcpcd";
};
}

View File

@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchFromGitHub,
perl,
installShellFiles,
libpcap,
}:
stdenv.mkDerivation rec {
pname = "dhcpdump";
version = "1.9";
src = fetchFromGitHub {
owner = "bbonev";
repo = "dhcpdump";
tag = "v${version}";
hash = "sha256-ck6DLsLQ00unNqPLBKkxaJLDCaPFjTFJcQjTbKSq0U8=";
};
strictDeps = true;
nativeBuildInputs = [
perl # pod2man
installShellFiles
];
buildInputs = [
libpcap
];
installPhase = ''
runHook preInstall
install -Dm555 dhcpdump "$out/bin/dhcpdump"
installManPage dhcpdump.8
runHook postInstall
'';
meta = {
description = "Tool for visualization of DHCP packets as recorded and output by tcpdump to analyze DHCP server responses";
homepage = "https://github.com/bbonev/dhcpdump";
changelog = "https://github.com/bbonev/dhcpdump/releases/tag/v${version}";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ nickcao ];
license = lib.licenses.bsd2;
mainProgram = "dhcpdump";
};
}

View File

@@ -0,0 +1,38 @@
{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "dhcpig";
version = "1.6";
pyproject = true;
src = fetchFromGitHub {
owner = "kamorin";
repo = "DHCPig";
tag = version;
hash = "sha256-MquLChDuJe3DdkxxKV4W0o49IIt7Am+yuhdOqUqexS8=";
};
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
scapy
];
installPhase = ''
install -Dm755 pig.py $out/bin/dhcpig
'';
meta = with lib; {
description = "Tool to perform advanced DHCP exhaustion attack";
homepage = "https://github.com/kamorin/DHCPig";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ tochiaha ];
mainProgram = "dhcpig";
};
}

View File

@@ -0,0 +1,37 @@
{
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";
};
}

View File

@@ -0,0 +1,30 @@
{
fetchFromGitHub,
lib,
nix-update-script,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "dhcpm";
version = "0.2.3";
src = fetchFromGitHub {
owner = "leshow";
repo = "dhcpm";
tag = "v${version}";
hash = "sha256-vjKN9arR6Os3pgG89qmHt/0Ds5ToO38tLsQBay6VEIk=";
};
cargoHash = "sha256-L6+/buzhYoLdFh7x8EmT37JyY5Pr7oFzyOGbhvgNvlw=";
passthru.updateScript = nix-update-script { };
meta = {
description = "CLI tool for constructing & sending DHCP messages";
homepage = "https://github.com/leshow/dhcpm";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jmbaur ];
mainProgram = "dhcpm";
};
}

View File

@@ -0,0 +1,76 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
SDL2,
libGLU,
libGL,
zlib,
libjpeg,
libogg,
libvorbis,
libX11,
openal,
curl,
copyDesktopItems,
makeDesktopItem,
}:
stdenv.mkDerivation rec {
pname = "dhewm3";
version = "1.5.4";
src = fetchFromGitHub {
owner = "dhewm";
repo = "dhewm3";
rev = version;
sha256 = "sha256-losqnxnjRPOczjrRPyyOxCeg9TNScXLcXADgo9Bxm5k=";
};
# Add libGLU libGL linking
patchPhase = ''
sed -i 's/\<idlib\()\?\)$/idlib GL\1/' neo/CMakeLists.txt
'';
preConfigure = ''
cd "$(ls -d dhewm3-*.src)"/neo
'';
nativeBuildInputs = [
cmake
copyDesktopItems
];
buildInputs = [
SDL2
libGLU
libGL
libX11
zlib
libjpeg
libogg
libvorbis
openal
curl
];
desktopItems = [
(makeDesktopItem {
name = "dhewm3";
exec = "dhewm3";
desktopName = "Doom 3";
categories = [ "Game" ];
})
];
hardeningDisable = [ "format" ];
meta = with lib; {
homepage = "https://github.com/dhewm/dhewm3";
description = "Doom 3 port to SDL";
mainProgram = "dhewm3";
license = lib.licenses.gpl3;
maintainers = [ ];
platforms = with platforms; linux;
};
}

View File

@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchurl,
ncurses,
}:
stdenv.mkDerivation rec {
pname = "dhex";
version = "0.69";
src = fetchurl {
url = "http://www.dettus.net/dhex/dhex_${version}.tar.gz";
sha256 = "06y4lrp29f2fh303ijk1xhspa1d4x4dm6hnyw3dd8szi3k6hnwsj";
};
buildInputs = [ ncurses ];
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
mkdir -p $out/share/man/man5
cp dhex $out/bin
cp dhex.1 $out/share/man/man1
cp dhexrc.5 $out/share/man/man5
cp dhex_markers.5 $out/share/man/man5
cp dhex_searchlog.5 $out/share/man/man5
'';
meta = {
description = "Themeable hex editor with diff mode";
homepage = "http://www.dettus.net/dhex/";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ qknight ];
platforms = with lib.platforms; linux;
mainProgram = "dhex";
};
}

View File

@@ -0,0 +1,29 @@
{
stdenv,
lib,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation {
pname = "dht";
version = "0.27-unstable-2025-05-01";
src = fetchFromGitHub {
# Use transmission fork from post-0.27-transmission branch
owner = "transmission";
repo = "dht";
rev = "38c9f261d9b58b76b9eaf85f84ec1b35151a1eac";
hash = "sha256-Y6CQhHnXS0YiL9K2VQtHeksuqgqYj7yvGYQr5nVC+yc=";
};
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "BitTorrent DHT library";
homepage = "https://github.com/transmission/dht";
license = licenses.mit;
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.unix;
};
}