about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/misc/umr/default.nix
blob: b83cb91a91b53abf2f65488b294dbe4fca2e3410 (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
38
39
40
{ lib, stdenv, fetchgit, bash-completion, cmake, pkg-config
, json_c, libdrm, libpciaccess, llvmPackages, nanomsg, ncurses, SDL2
}:

stdenv.mkDerivation rec {
  pname = "umr";
  version = "unstable-2022-08-23";

  src = fetchgit {
    url = "https://gitlab.freedesktop.org/tomstdenis/umr";
    rev = "87f814b1ffdbac8bfddd8529d344a7901cd7e112";
    hash = "sha256-U1VP1AicSGWzBwzz99i7+3awATZocw5jaqtAxuRNaBE=";
  };

  nativeBuildInputs = [ cmake pkg-config llvmPackages.llvm.dev ];

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

  # 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;
 };
}