diff --git a/pkgs/os-specific/bsd/freebsd/pkgs/uathload.nix b/pkgs/os-specific/bsd/freebsd/pkgs/uathload.nix new file mode 100644 index 000000000000..b6a9d3ed1407 --- /dev/null +++ b/pkgs/os-specific/bsd/freebsd/pkgs/uathload.nix @@ -0,0 +1,20 @@ +{ + mkDerivation, + bintrans, +}: +mkDerivation { + path = "usr.sbin/uathload"; + extraPaths = [ + "sys/contrib/dev/uath" + ]; + outputs = [ + "out" + "debug" + ]; + extraNativeBuildInputs = [ + bintrans + ]; + postPatch = '' + substituteInPlace usr.sbin/uathload/uathload.c --replace-fail _PATH_FIRMWARE '"${builtins.placeholder "out"}/share/firmware"' + ''; +}