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