about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libsystemtap/default.nix
blob: 3525d057b97af290ae7a5d11d4557afc22ce2d02 (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
31
32
33
{ lib, stdenv, fetchgit
, gettext
, python3
, elfutils
}:

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

  src = fetchgit {
    url = "git://sourceware.org/git/systemtap.git";
    rev = "release-4.6";
    hash = "sha256-z7OUy0VGxK39aYCWFfvJnWk34Je0R+51kK5pGh7TzXM=";
  };

  dontBuild = true;

  nativeBuildInputs = [ gettext python3 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 ];
  };
}