mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
27 lines
679 B
Nix
27 lines
679 B
Nix
{ lib, fetchFromGitHub, python3, bcc }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "sockdump";
|
|
version = "unstable-2023-12-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mechpen";
|
|
repo = pname;
|
|
rev = "d40ec77e960d021861220bc14a273c5dcad13160";
|
|
hash = "sha256-FLK1rgWvIoFGv/6+DtDhZGeOZrn7V1jYNS3S8qwL/dc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ bcc ];
|
|
|
|
format = "other"; # none
|
|
|
|
installPhase = "install -D ${pname}.py $out/bin/${pname}";
|
|
|
|
meta = src.meta // {
|
|
description = "Dump unix domain socket traffic with bpf";
|
|
mainProgram = "sockdump";
|
|
license = lib.licenses.unlicense;
|
|
maintainers = with lib.maintainers; [ ehmry picnoir ];
|
|
};
|
|
}
|