sysdig: cheat nix into not capturing linux-dev as a runtime dependency
This commit is contained in:
parent
41cd2d870a
commit
e15aa51f2f
|
@ -10,7 +10,7 @@ let
|
||||||
};
|
};
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cmake zlib luajit
|
cmake zlib luajit
|
||||||
] ++ optional (kernel != null) kernel;
|
];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit (s) name version;
|
inherit (s) name version;
|
||||||
|
@ -30,6 +30,10 @@ stdenv.mkDerivation {
|
||||||
'';
|
'';
|
||||||
postInstall = optionalString (kernel != null) ''
|
postInstall = optionalString (kernel != null) ''
|
||||||
make install_driver
|
make install_driver
|
||||||
|
kernel_dev=${kernel.dev}
|
||||||
|
kernel_dev=''${kernel_dev#/nix/store/}
|
||||||
|
kernel_dev=''${kernel_dev%%-linux*dev*}
|
||||||
|
sed -i "s#$kernel_dev#................................#g" $out/lib/modules/${kernel.modDirVersion}/extra/sysdig-probe.ko
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue