From 500cd68bb15e06e216c887caf51e7e43fa960849 Mon Sep 17 00:00:00 2001 From: Atemu Date: Tue, 16 Jan 2024 16:39:54 +0100 Subject: [PATCH 1/2] umr: unstable-2022-08-23 -> 1.0.8 Fixes the build and uses a stable version Also switched to the gitlab fetcher, did a bit of cleanup and fixed umrgui --- pkgs/development/misc/umr/default.nix | 40 ++++++++++++++++++++------- pkgs/top-level/all-packages.nix | 4 +-- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/pkgs/development/misc/umr/default.nix b/pkgs/development/misc/umr/default.nix index b83cb91a91b5..59cf67e60de0 100644 --- a/pkgs/development/misc/umr/default.nix +++ b/pkgs/development/misc/umr/default.nix @@ -1,28 +1,48 @@ -{ lib, stdenv, fetchgit, bash-completion, cmake, pkg-config -, json_c, libdrm, libpciaccess, llvmPackages, nanomsg, ncurses, SDL2 +{ lib +, stdenv + +, fetchFromGitLab + +, cmake +, pkg-config + +, libdrm +, mesa # libgbm +, libpciaccess +, llvmPackages +, nanomsg +, ncurses +, SDL2 +, bash-completion }: stdenv.mkDerivation rec { pname = "umr"; - version = "unstable-2022-08-23"; + version = "1.0.8"; - src = fetchgit { - url = "https://gitlab.freedesktop.org/tomstdenis/umr"; - rev = "87f814b1ffdbac8bfddd8529d344a7901cd7e112"; - hash = "sha256-U1VP1AicSGWzBwzz99i7+3awATZocw5jaqtAxuRNaBE="; + src = fetchFromGitLab { + domain = "gitlab.freedesktop.org"; + owner = "tomstdenis"; + repo = "umr"; + rev = version; + hash = "sha256-ODkTYHDrKWNvjiEeIyfsCByf7hyr5Ps9ytbKb3253bU="; }; - nativeBuildInputs = [ cmake pkg-config llvmPackages.llvm.dev ]; + nativeBuildInputs = [ + cmake + pkg-config + ]; buildInputs = [ - bash-completion - json_c 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) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bdfb60fec1fa..35031ea4fb10 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18203,9 +18203,7 @@ with pkgs; publii = callPackage ../development/web/publii {}; - umr = callPackage ../development/misc/umr { - llvmPackages = llvmPackages_14; - }; + umr = callPackage ../development/misc/umr { }; refurb = callPackage ../development/tools/refurb { }; From f5d30774ec9d24f74a979573333cb281a108db34 Mon Sep 17 00:00:00 2001 From: Atemu Date: Tue, 16 Jan 2024 16:49:56 +0100 Subject: [PATCH 2/2] umr: use nix-update-script --- pkgs/development/misc/umr/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/misc/umr/default.nix b/pkgs/development/misc/umr/default.nix index 59cf67e60de0..37177f926b68 100644 --- a/pkgs/development/misc/umr/default.nix +++ b/pkgs/development/misc/umr/default.nix @@ -14,6 +14,8 @@ , ncurses , SDL2 , bash-completion + +, nix-update-script }: stdenv.mkDerivation rec { @@ -50,6 +52,8 @@ stdenv.mkDerivation rec { rm -r $out/lib ''; + passthru.updateScript = nix-update-script { }; + meta = with lib; { description = "A userspace debugging and diagnostic tool for AMD GPUs"; homepage = "https://gitlab.freedesktop.org/tomstdenis/umr";