mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
linuxPackages.sysdig: turn off pic hardening
This commit is contained in:
parent
e3a4f0920f
commit
7854ca7170
@ -1,32 +1,33 @@
|
||||
{stdenv, fetchurl, cmake, luajit, kernel, zlib, ncurses, perl, jsoncpp, libb64, openssl, curl}:
|
||||
let
|
||||
inherit (stdenv.lib) optional optionalString;
|
||||
s = rec {
|
||||
baseName="sysdig";
|
||||
version = "0.6.0";
|
||||
name="${baseName}-${version}";
|
||||
url="https://github.com/draios/sysdig/archive/${version}.tar.gz";
|
||||
baseName = "sysdig";
|
||||
version = "0.6.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name="${baseName}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/draios/sysdig/archive/${version}.tar.gz";
|
||||
sha256 = "0729mjs9gpd7kb495q80zlp23zczm8ka3xcq4571c0sm732sa3g3";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
cmake zlib luajit ncurses perl jsoncpp libb64 openssl curl
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit buildInputs;
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
|
||||
hardening_pic = false;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_BUNDLED_DEPS=OFF"
|
||||
] ++ optional (kernel == null) "-DBUILD_DRIVER=OFF";
|
||||
|
||||
preConfigure = ''
|
||||
export INSTALL_MOD_PATH="$out"
|
||||
'' + optionalString (kernel != null) ''
|
||||
export KERNELDIR="${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
'';
|
||||
|
||||
postInstall = optionalString (kernel != null) ''
|
||||
make install_driver
|
||||
kernel_dev=${kernel.dev}
|
||||
@ -36,8 +37,7 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit (s) version;
|
||||
description = ''A tracepoint-based system tracing tool for Linux (with clients for other OSes)'';
|
||||
description = "A tracepoint-based system tracing tool for Linux (with clients for other OSes)";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [maintainers.raskin];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
|
Loading…
Reference in New Issue
Block a user