nixpkgs/pkgs/development/misc/umr/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

65 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, cmake
, pkg-config
, libdrm
, mesa # libgbm
, libpciaccess
, llvmPackages
, nanomsg
, ncurses
, SDL2
, bash-completion
, nix-update-script
}:
stdenv.mkDerivation rec {
pname = "umr";
version = "1.0.8";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "tomstdenis";
repo = "umr";
rev = version;
hash = "sha256-ODkTYHDrKWNvjiEeIyfsCByf7hyr5Ps9ytbKb3253bU=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libdrm
mesa
libpciaccess
llvmPackages.llvm
nanomsg
ncurses
SDL2
bash-completion # Tries to create bash-completions in /var/empty otherwise?
];
# Remove static libraries (there are no dynamic libraries in there)
postInstall = ''
rm -r $out/lib
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "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;
};
}