Unverified Commit eb0481ea authored by Artemis Tosini's avatar Artemis Tosini
Browse files

freebsd.libnvmf: init



Co-Authored-By: default avatarAudrey Dutcher <audrey@rhelmot.io>
parent 9d28ad84
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
{
  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;
}