freebsd.libnvmf: init

Co-Authored-By: Audrey Dutcher <audrey@rhelmot.io>
This commit is contained in:
Artemis Tosini
2026-03-06 13:19:08 -08:00
parent 9d28ad840d
commit eb0481ea02
@@ -0,0 +1,21 @@
{
mkDerivation,
libnv,
}:
mkDerivation {
path = "lib/libnvmf";
extraPaths = [
"sys/libkern"
"sys/dev/nvmf"
];
buildInputs = [ libnv ];
postPatch = ''
sed -E -i -e '/INTERNALLIB/d' lib/libnvmf/Makefile
'';
postInstall = ''
ln -s libnvmf.a $out/lib/libnvmf_pie.a
'';
alwaysKeepStatic = true;
}