Update Sysdig, adding new dependencies

This commit is contained in:
Michael Raskin 2015-06-14 11:23:56 +03:00
parent f39c3ebf04
commit 14e7d5440b
1 changed files with 5 additions and 4 deletions

View File

@ -1,15 +1,15 @@
{stdenv, fetchurl, cmake, luajit, kernel, zlib}: {stdenv, fetchurl, cmake, luajit, kernel, zlib, ncurses}:
let let
inherit (stdenv.lib) optional optionalString; inherit (stdenv.lib) optional optionalString;
s = rec { s = rec {
baseName="sysdig"; baseName="sysdig";
version = "0.1.99"; version = "0.1.101";
name="${baseName}-${version}"; name="${baseName}-${version}";
url="https://github.com/draios/sysdig/archive/${version}.tar.gz"; url="https://github.com/draios/sysdig/archive/${version}.tar.gz";
sha256 = "02faw8s07i7jjydqzqfs0r9lc2qmny3sn26741bz0hmazs9h9w76"; sha256 = "1dlx1v7wr0i36sbybr4kj8sziyrfxs4pcn6bnl0ljlb5wndy75b9";
}; };
buildInputs = [ buildInputs = [
cmake zlib luajit cmake zlib luajit ncurses
]; ];
in in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -22,6 +22,7 @@ stdenv.mkDerivation {
cmakeFlags = [ cmakeFlags = [
"-DUSE_BUNDLED_LUAJIT=OFF" "-DUSE_BUNDLED_LUAJIT=OFF"
"-DUSE_BUNDLED_ZLIB=OFF" "-DUSE_BUNDLED_ZLIB=OFF"
"-DUSE_BUNDLED_NCURSES=OFF"
] ++ optional (kernel == null) "-DBUILD_DRIVER=OFF"; ] ++ optional (kernel == null) "-DBUILD_DRIVER=OFF";
preConfigure = '' preConfigure = ''
export INSTALL_MOD_PATH="$out" export INSTALL_MOD_PATH="$out"