Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 61 lines 1.2 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, rocmUpdateScript 5, cmake 6, hip 7, git 8, rocdbgapi 9, rocm-runtime 10, elfutils 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "rocr-debug-agent"; 15 version = "5.4.2"; 16 17 src = fetchFromGitHub { 18 owner = "ROCm-Developer-Tools"; 19 repo = "rocr_debug_agent"; 20 rev = "rocm-${finalAttrs.version}"; 21 hash = "sha256-5l6svWSWCxVoyr1zJabxbt5rXQMtdZtHrf9gS2PcRKc="; 22 }; 23 24 nativeBuildInputs = [ 25 cmake 26 hip 27 git 28 ]; 29 30 buildInputs = [ 31 rocdbgapi 32 rocm-runtime 33 elfutils 34 ]; 35 36 cmakeFlags = [ 37 "-DCMAKE_MODULE_PATH=${hip}/lib/cmake/hip" 38 "-DHIP_ROOT_DIR=${hip}" 39 "-DHIP_PATH=${hip}" 40 ]; 41 42 # Weird install target 43 postInstall = '' 44 rm -rf $out/src 45 ''; 46 47 passthru.updateScript = rocmUpdateScript { 48 name = finalAttrs.pname; 49 owner = finalAttrs.src.owner; 50 repo = finalAttrs.src.repo; 51 }; 52 53 meta = with lib; { 54 description = "Library that provides some debugging functionality for ROCr"; 55 homepage = "https://github.com/ROCm-Developer-Tools/rocr_debug_agent"; 56 license = with licenses; [ ncsa ]; 57 maintainers = teams.rocm.members; 58 platforms = platforms.linux; 59 broken = versions.minor finalAttrs.version != versions.minor hip.version; 60 }; 61})