summary refs log tree commit diff
path: root/pkgs/development/libraries/libsystemtap/default.nix
blob: 17ac533732f9f39d3b20b2a6f0ed7163fb33a5d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{lib, stdenv, fetchgit, gettext, python2, elfutils}:

stdenv.mkDerivation {
  pname = "libsystemtap";
  version = "3.2";

  src = fetchgit {
    url = "git://sourceware.org/git/systemtap.git";
    rev = "4051c70c9318c837981384cbb23f3e9eb1bd0892";
    sha256 = "0sd8n3j3rishks3gyqj2jyqhps7hmlfjyz8i0w8v98cczhhh04rq";
    fetchSubmodules = false;
  };

  dontBuild = true;

  nativeBuildInputs = [ gettext python2 elfutils ];

  installPhase = ''
    mkdir -p $out/include
    cp -r includes/* $out/include/
  '';

  meta = with lib; {
    description = "Statically defined probes development files";
    homepage = "https://sourceware.org/systemtap/";
    license = licenses.bsd3;
    platforms = platforms.unix;
    maintainers = [ lib.maintainers.farlion ];
  };
}