diff options
author | Volth <volth@webmaster.ms> | 2017-02-05 05:43:35 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-06 01:54:19 +0100 |
commit | c771d499f9c44f9b20312d136617d127e090133d (patch) | |
tree | f3b3f99f4238c5534509e9b78faa018f2380d000 /pkgs/development/tools | |
parent | 9beeee2717d2b4dc3147f6221fc6ae9c158e59f8 (diff) | |
download | nixlib-c771d499f9c44f9b20312d136617d127e090133d.tar nixlib-c771d499f9c44f9b20312d136617d127e090133d.tar.gz nixlib-c771d499f9c44f9b20312d136617d127e090133d.tar.bz2 nixlib-c771d499f9c44f9b20312d136617d127e090133d.tar.lz nixlib-c771d499f9c44f9b20312d136617d127e090133d.tar.xz nixlib-c771d499f9c44f9b20312d136617d127e090133d.tar.zst nixlib-c771d499f9c44f9b20312d136617d127e090133d.zip |
systemtap: 2016-09-16 -> 2017-02-04
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/profiling/systemtap/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/development/tools/profiling/systemtap/default.nix b/pkgs/development/tools/profiling/systemtap/default.nix index b78727802454..a16bdbc539a9 100644 --- a/pkgs/development/tools/profiling/systemtap/default.nix +++ b/pkgs/development/tools/profiling/systemtap/default.nix @@ -1,11 +1,11 @@ { fetchgit, pkgconfig, gettext, runCommand, makeWrapper -, elfutils, kernel, gnumake }: +, elfutils, kernel, gnumake, python2, pythonPackages, binutils }: let ## fetchgit info url = git://sourceware.org/git/systemtap.git; - rev = "a10bdceb7c9a7dc52c759288dd2e555afcc5184a"; - sha256 = "1kllzfnh4ksis0673rma5psglahl6rvy0xs5v05qkqn6kl7irmg1"; - version = "2016-09-16"; + rev = "276ed27a3cc64531542ab73bb36bb04784e79bbc"; + sha256 = "11967dx3cjs96v3ncfljw0h7blsgg9wm8g9z2270q9a90988g2c2"; + version = "2017-02-04"; inherit (kernel) stdenv; inherit (stdenv) lib; @@ -14,7 +14,13 @@ let stapBuild = stdenv.mkDerivation { name = "systemtap-${version}"; src = fetchgit { inherit url rev sha256; }; - buildInputs = [ elfutils pkgconfig gettext ]; + buildInputs = [ elfutils pkgconfig gettext python2 pythonPackages.setuptools ]; + # FIXME: Workaround for bug in kbuild, where quoted -I"/foo" flags would get mangled in out-of-tree kbuild dirs + postPatch = '' + substituteInPlace buildrun.cxx --replace \ + 'o << "EXTRA_CFLAGS += -I\"" << s.runtime_path << "\"" << endl;' \ + 'o << "EXTRA_CFLAGS += -I" << s.runtime_path << endl;' + ''; enableParallelBuilding = true; }; @@ -48,5 +54,5 @@ in runCommand "systemtap-${kernel.version}-${version}" { rm $out/bin/stap makeWrapper $stapBuild/bin/stap $out/bin/stap \ --add-flags "-r $kernelBuildDir" \ - --prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc elfutils gnumake ]} + --prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc binutils elfutils gnumake ]} '' |