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,52 @@
{
lib,
fetchFromGitHub,
python3Packages,
bcc,
}:
python3Packages.buildPythonApplication {
pname = "ebpf-usb";
version = "0-unstable-2022-04-03";
pyproject = false;
src = fetchFromGitHub {
owner = "francisrstokes";
repo = "ebpf-usb";
rev = "3ab6f0d8c6ece51bbb5cc5e05daa4008eccd70e8";
hash = "sha256-n3ttFej9sroTqAOgyAejwKT+aMt/z7HlVPV6CVGPNUQ=";
};
makeWrapperArgs = [
"--set PYTHONUNBUFFERED 1"
];
pythonPath = [
bcc
]
++ (with python3Packages; [
hexdump
]);
postPatch = ''
substituteInPlace ebpf-usb.py \
--replace '#!/usr/bin/env -S python3 -u' '#!/usr/bin/env python3'
'';
installPhase = ''
runHook preInstall
install -Dm755 ebpf-usb.py $out/bin/ebpf-usb
runHook postInstall
'';
# no tests
doCheck = false;
meta = with lib; {
description = "Python script for USB monitoring using eBPF";
homepage = "https://github.com/francisrstokes/ebpf-usb";
license = lib.licenses.unfree;
maintainers = with maintainers; [ mevatron ];
mainProgram = "ebpf-usb";
};
}