diff options
author | Niklas Hambüchen <mail@nh2.me> | 2017-07-06 18:05:40 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-07-09 22:30:41 +0200 |
commit | a37f3a3573bfd39b00ece2ec3f00661b020ad14c (patch) | |
tree | ebc0fa96010638fc3cd01133f05783f391e7cd3e /pkgs/development/tools/analysis/hotspot/default.nix | |
parent | 35e912793ac5b4c6e808dc23e61d755d473580ed (diff) | |
download | nixlib-a37f3a3573bfd39b00ece2ec3f00661b020ad14c.tar nixlib-a37f3a3573bfd39b00ece2ec3f00661b020ad14c.tar.gz nixlib-a37f3a3573bfd39b00ece2ec3f00661b020ad14c.tar.bz2 nixlib-a37f3a3573bfd39b00ece2ec3f00661b020ad14c.tar.lz nixlib-a37f3a3573bfd39b00ece2ec3f00661b020ad14c.tar.xz nixlib-a37f3a3573bfd39b00ece2ec3f00661b020ad14c.tar.zst nixlib-a37f3a3573bfd39b00ece2ec3f00661b020ad14c.zip |
hotspot: init at 1.0.0
Diffstat (limited to 'pkgs/development/tools/analysis/hotspot/default.nix')
-rw-r--r-- | pkgs/development/tools/analysis/hotspot/default.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/development/tools/analysis/hotspot/default.nix b/pkgs/development/tools/analysis/hotspot/default.nix new file mode 100644 index 000000000000..ee9fbb111969 --- /dev/null +++ b/pkgs/development/tools/analysis/hotspot/default.nix @@ -0,0 +1,64 @@ +{ stdenv, + cmake, + elfutils, + extra-cmake-modules, + fetchFromGitHub, + kconfigwidgets, + ki18n, + kitemmodels, + kitemviews, + libelf, + qtbase, + threadweaver, +}: + +stdenv.mkDerivation rec { + name = "hotspot-${version}"; + version = "1.0.0"; # don't forget to bump `rev` below when you change this + + src = fetchFromGitHub { + owner = "KDAB"; + repo = "hotspot"; + # TODO: For some reason, `fetchSubmodules` doesn't work when using `rev = "v${version}";`, + # so using an explicit commit instead. See #15559 + rev = "352687bf620529e9887616651f123f922cb421a4"; + sha256 = "09ly15yafpk31p3w7h2xixf1xdmx803w9fyb2aq7mhmc7pcxqjsx"; + fetchSubmodules = true; + }; + + buildInputs = [ + cmake + elfutils + extra-cmake-modules + kconfigwidgets + ki18n + kitemmodels + kitemviews + libelf + qtbase + threadweaver + ]; + + # hotspot checks for the presence of third party libraries' + # git directory to give a nice warning when you forgot to clone + # submodules; but Nix clones them and removes .git (for reproducibility). + # So we need to fake their existence here. + postPatch = '' + mkdir -p 3rdparty/perfparser/.git + ''; + + enableParallelBuilding = true; + + meta = { + description = "A GUI for Linux perf"; + longDescription = '' + hotspot is a GUI replacement for `perf report`. + It takes a perf.data file, parses and evaluates its contents and + then displays the result in a graphical way. + ''; + homepage = "https://github.com/KDAB/hotspot"; + license = with stdenv.lib.licenses; [ gpl2 gpl3 ]; + platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ nh2 ]; + }; +} |