linuxPackages.v4l2loopback: no format/pic hardening

This commit is contained in:
Robin Gloster 2016-02-07 22:43:01 +00:00
parent dc2b548955
commit 33a0e63fbf

View file

@ -8,7 +8,10 @@ stdenv.mkDerivation rec {
url = "https://github.com/umlaeute/v4l2loopback/archive/v${version}.tar.gz";
sha256 = "1crkhxlnskqrfj3f7jmiiyi5m75zmj7n0s26xz07wcwdzdf2p568";
};
hardening_pic = false;
hardening_format = false;
preBuild = ''
substituteInPlace Makefile --replace "modules_install" "INSTALL_MOD_PATH=$out modules_install"
sed -i '/depmod/d' Makefile
@ -16,7 +19,7 @@ stdenv.mkDerivation rec {
'';
buildInputs = [ kmod ];
makeFlags = [
"KERNELRELEASE=${kernel.modDirVersion}"
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"