@@ -5,9 +5,9 @@
55let
66 ## fetchgit info
77 url = git://sourceware.org/git/systemtap.git;
8− rev = "4051c70c9318c837981384cbb23f3e9eb1bd0892";
9− sha256 = "0sd8n3j3rishks3gyqj2jyqhps7hmlfjyz8i0w8v98cczhhh04rq";
10− version = "2017.10.18";
8+ rev = "release-${version}";
9+ sha256 = "0hckbmrlcz5nj438409fmdjjaaqzf68r2242v10lkssw5daia1gj";
10+ version = "3.3";
1111
1212 inherit (kernel) stdenv;
1313 inherit (stdenv) lib;
@@ -18,12 +18,6 @@ let
1818 src = fetchgit { inherit url rev sha256; };
1919 nativeBuildInputs = [ pkgconfig ];
2020 buildInputs = [ elfutils gettext python2 python2Packages.setuptools ];
21− # FIXME: Workaround for bug in kbuild, where quoted -I"/foo" flags would get mangled in out-of-tree kbuild dirs
22− postPatch = ''
23− substituteInPlace buildrun.cxx --replace \
24− 'o << "EXTRA_CFLAGS += -I\"" << s.runtime_path << "\"" << endl;' \
25− 'o << "EXTRA_CFLAGS += -I" << s.runtime_path << endl;'
26− '';
2721 enableParallelBuilding = true;
2822 };
2923
@@ -53,7 +47,7 @@ in runCommand "systemtap-${kernel.version}-${version}" {
5347 };
5448} ''
5549 mkdir -p $out/bin
56− for bin in $stapBuild/bin/*; do # hello emacs */
50+ for bin in $stapBuild/bin/*; do
5751 ln -s $bin $out/bin
5852 done
5953 rm $out/bin/stap $out/bin/dtrace