2024-02-07 01:22:34 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
|
|
|
|
, fetchFromGitLab
|
|
|
|
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
|
|
|
|
, libdrm
|
|
|
|
, mesa # libgbm
|
|
|
|
, libpciaccess
|
|
|
|
, llvmPackages
|
|
|
|
, nanomsg
|
|
|
|
, ncurses
|
|
|
|
, SDL2
|
|
|
|
, bash-completion
|
|
|
|
|
|
|
|
, nix-update-script
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "umr";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.0.8";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "tomstdenis";
|
|
|
|
repo = "umr";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-ODkTYHDrKWNvjiEeIyfsCByf7hyr5Ps9ytbKb3253bU=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libdrm
|
2024-02-07 01:22:34 +00:00
|
|
|
mesa
|
2021-03-09 03:18:52 +00:00
|
|
|
libpciaccess
|
|
|
|
llvmPackages.llvm
|
2022-09-09 14:08:57 +00:00
|
|
|
nanomsg
|
2021-03-09 03:18:52 +00:00
|
|
|
ncurses
|
2022-09-09 14:08:57 +00:00
|
|
|
SDL2
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
bash-completion # Tries to create bash-completions in /var/empty otherwise?
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Remove static libraries (there are no dynamic libraries in there)
|
|
|
|
postInstall = ''
|
|
|
|
rm -r $out/lib
|
|
|
|
'';
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Userspace debugging and diagnostic tool for AMD GPUs";
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "https://gitlab.freedesktop.org/tomstdenis/umr";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Flakebi ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|