2020-02-19 16:40:00 +01:00
|
|
|
{ lib, stdenv, fetchgit, bash-completion, cmake, pkg-config
|
2022-08-26 17:25:02 +02:00
|
|
|
, json_c, libdrm, libpciaccess, llvmPackages, nanomsg, ncurses, SDL2
|
2020-02-19 16:40:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "umr";
|
2022-08-26 17:25:02 +02:00
|
|
|
version = "unstable-2022-08-23";
|
2020-02-19 16:40:00 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.freedesktop.org/tomstdenis/umr";
|
2022-08-26 17:25:02 +02:00
|
|
|
rev = "87f814b1ffdbac8bfddd8529d344a7901cd7e112";
|
|
|
|
hash = "sha256-U1VP1AicSGWzBwzz99i7+3awATZocw5jaqtAxuRNaBE=";
|
2020-02-19 16:40:00 +01:00
|
|
|
};
|
|
|
|
|
2021-05-09 01:30:09 +02:00
|
|
|
nativeBuildInputs = [ cmake pkg-config llvmPackages.llvm.dev ];
|
2020-02-19 16:40:00 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bash-completion
|
2022-08-26 17:25:02 +02:00
|
|
|
json_c
|
2020-02-19 16:40:00 +01:00
|
|
|
libdrm
|
|
|
|
libpciaccess
|
|
|
|
llvmPackages.llvm
|
2022-08-26 17:25:02 +02:00
|
|
|
nanomsg
|
2020-02-19 16:40:00 +01:00
|
|
|
ncurses
|
2022-08-26 17:25:02 +02:00
|
|
|
SDL2
|
2020-02-19 16:40:00 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|