summary refs log tree commit diff
path: root/pkgs/development/misc/umr/default.nix
blob: 158cef2eed1e888f524588fe9c9f3cd2ced2b802 (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
34
35
36
37
{ lib, stdenv, fetchgit, bash-completion, cmake, pkg-config
, libdrm, libpciaccess, llvmPackages, ncurses
}:

stdenv.mkDerivation rec {
  pname = "umr";
  version = "unstable-2021-02-18";

  src = fetchgit {
    url = "https://gitlab.freedesktop.org/tomstdenis/umr";
    rev = "79e17f8f2807ed707fc1be369d0aad536f6dbc97";
    sha256 = "IwTkHEuJ82hngPjFVIihU2rSolLBqHxQTNsP8puYPaY=";
  };

  nativeBuildInputs = [ cmake pkg-config ];

  buildInputs = [
    bash-completion
    libdrm
    libpciaccess
    llvmPackages.llvm
    ncurses
  ];

  # Remove static libraries (there are no dynamic libraries in there)
  postInstall = ''
    rm -r $out/lib
  '';

  meta = with lib; {
    description = "A userspace debugging and diagnostic tool for AMD GPUs";
    homepage = "https://gitlab.freedesktop.org/tomstdenis/umr";
    license = licenses.mit;
    maintainers = with maintainers; [ Flakebi ];
    platforms = platforms.linux;
 };
}