3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #3925 from proger/sysdig-no-kernel-dev

sysdig: cheat nix into not capturing linux-dev as a runtime dependency
This commit is contained in:
Michael Raskin 2014-09-02 00:54:50 +04:00
commit 319d8ac609

View file

@ -10,7 +10,7 @@ let
};
buildInputs = [
cmake zlib luajit
] ++ optional (kernel != null) kernel;
];
in
stdenv.mkDerivation {
inherit (s) name version;
@ -30,6 +30,10 @@ stdenv.mkDerivation {
'';
postInstall = optionalString (kernel != null) ''
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; {