freebsd.libnvmf: init
Co-Authored-By: Audrey Dutcher <audrey@rhelmot.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user