From e6b86a37eb2e56e5c8c0662a4c43e6956a70f437 Mon Sep 17 00:00:00 2001 From: Flakebi Date: Wed, 19 Feb 2020 16:40:00 +0100 Subject: [PATCH] umr: init at unstable-2021-02-18 --- pkgs/development/misc/umr/default.nix | 37 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/misc/umr/default.nix diff --git a/pkgs/development/misc/umr/default.nix b/pkgs/development/misc/umr/default.nix new file mode 100644 index 000000000000..158cef2eed1e --- /dev/null +++ b/pkgs/development/misc/umr/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchgit, bash-completion, cmake, pkg-config +, libdrm, libpciaccess, llvmPackages, ncurses +}: + +stdenv.mkDerivation rec { + pname = "umr"; + version = "unstable-2021-02-18"; + + src = fetchgit { + url = "https://gitlab.freedesktop.org/tomstdenis/umr"; + rev = "79e17f8f2807ed707fc1be369d0aad536f6dbc97"; + sha256 = "IwTkHEuJ82hngPjFVIihU2rSolLBqHxQTNsP8puYPaY="; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + + buildInputs = [ + bash-completion + libdrm + libpciaccess + llvmPackages.llvm + ncurses + ]; + + # 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fdc4262a4864..447f9ed0ecf1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11731,6 +11731,10 @@ in pharo-spur64 = assert stdenv.is64bit; pharo-vms.spur64; pharo-launcher = callPackage ../development/pharo/launcher { }; + umr = callPackage ../development/misc/umr { + llvmPackages = llvmPackages_latest; + }; + srandrd = callPackage ../tools/X11/srandrd { }; srecord = callPackage ../development/tools/misc/srecord { };