From a46e74fd2323fdc1e8baf5884321d900fee9c44a Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Thu, 6 Jun 2024 23:07:05 -0700 Subject: [PATCH] freebsd.ping: init --- pkgs/os-specific/bsd/freebsd/pkgs/ping.nix | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/os-specific/bsd/freebsd/pkgs/ping.nix diff --git a/pkgs/os-specific/bsd/freebsd/pkgs/ping.nix b/pkgs/os-specific/bsd/freebsd/pkgs/ping.nix new file mode 100644 index 000000000000..ea209db2b960 --- /dev/null +++ b/pkgs/os-specific/bsd/freebsd/pkgs/ping.nix @@ -0,0 +1,24 @@ +{ + mkDerivation, + lib, + libcasper, + libcapsicum, + libipsec, +}: +mkDerivation { + path = "sbin/ping"; + buildInputs = [ + libcasper + libcapsicum + libipsec + ]; + + postPatch = '' + sed -i 's/4555/0555/' $BSDSRCDIR/sbin/ping/Makefile + ''; + + MK_TESTS = "no"; + clangFixup = true; + + meta.platforms = lib.platforms.freebsd; +}