From bd39969c8d4cc623dae0578f8e67c8a9228493ee Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Sat, 31 May 2025 21:55:02 -0700 Subject: [PATCH] freebsd.devd: init --- pkgs/os-specific/bsd/freebsd/pkgs/devd.nix | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/os-specific/bsd/freebsd/pkgs/devd.nix diff --git a/pkgs/os-specific/bsd/freebsd/pkgs/devd.nix b/pkgs/os-specific/bsd/freebsd/pkgs/devd.nix new file mode 100644 index 000000000000..243a7c577748 --- /dev/null +++ b/pkgs/os-specific/bsd/freebsd/pkgs/devd.nix @@ -0,0 +1,51 @@ +{ + lib, + mkDerivation, + libutil, + flex, + byacc, +}: +mkDerivation { + path = "sbin/devd"; + + outputs = [ + "out" + "etc" + "man" + "debug" + ]; + + buildInputs = [ + libutil + ]; + + extraNativeBuildInputs = [ + flex + byacc + ]; + + clangFixup = false; + + MK_TESTS = "no"; + MK_AUTOFS = "yes"; + MK_BLUETOOTH = "yes"; + MK_HYPERV = "yes"; + MK_USB = "yes"; + MK_ZFS = "yes"; + + postPatch = '' + substituteInPlace $BSDSRCDIR/sbin/devd/Makefile --replace-fail /etc $etc/etc + ''; + + NIX_CFLAGS_COMPILE = [ + "-Wno-c++20-extensions" + "-Wno-nullability-completeness" + ]; + + postInstall = '' + make $makeFlags installconfig + ''; + + meta.platforms = lib.platforms.freebsd; + meta.mainProgram = "devd"; +}