btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / um / umr / package.nix
blobaa9b63c3d0d714af323ee20e6391ceacd80fdc31
1 { lib
2 , stdenv
4 , fetchFromGitLab
6 , cmake
7 , pkg-config
9 , libdrm
10 , mesa # libgbm
11 , libpciaccess
12 , llvmPackages
13 , nanomsg
14 , ncurses
15 , SDL2
16 , bash-completion
18 , nix-update-script
21 stdenv.mkDerivation rec {
22   pname = "umr";
23   version = "1.0.8";
25   src = fetchFromGitLab {
26     domain = "gitlab.freedesktop.org";
27     owner = "tomstdenis";
28     repo = "umr";
29     rev = version;
30     hash = "sha256-ODkTYHDrKWNvjiEeIyfsCByf7hyr5Ps9ytbKb3253bU=";
31   };
33   nativeBuildInputs = [
34     cmake
35     pkg-config
36   ];
38   buildInputs = [
39     libdrm
40     mesa
41     libpciaccess
42     llvmPackages.llvm
43     nanomsg
44     ncurses
45     SDL2
47     bash-completion # Tries to create bash-completions in /var/empty otherwise?
48   ];
50   # Remove static libraries (there are no dynamic libraries in there)
51   postInstall = ''
52     rm -r $out/lib
53   '';
55   passthru.updateScript = nix-update-script { };
57   meta = with lib; {
58     description = "Userspace debugging and diagnostic tool for AMD GPUs";
59     homepage = "https://gitlab.freedesktop.org/tomstdenis/umr";
60     license = licenses.mit;
61     maintainers = with maintainers; [ Flakebi ];
62     platforms = platforms.linux;
63  };