at 24.11-pre 35 lines 845 B view raw
1{ lib, fetchFromGitHub, rustPlatform, pkg-config }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "itm-tools"; 5 version = "unstable-2019-11-15"; 6 7 src = fetchFromGitHub { 8 owner = "japaric"; 9 repo = pname; 10 rev = "e94155e44019d893ac8e6dab51cc282d344ab700"; 11 sha256 = "19xkjym0i7y52cfhvis49c59nzvgw4906cd8bkz8ka38mbgfqgiy"; 12 }; 13 14 cargoLock = { 15 lockFile = ./Cargo.lock; 16 outputHashes = { 17 "itm-0.4.0" = "sha256-T61f1WvxEMhI5bzp8FuMYWiG1YOPJvWuBJfK/gjuNKI="; 18 }; 19 }; 20 21 nativeBuildInputs = [ pkg-config ]; 22 23 postPatch = '' 24 ln -s ${./Cargo.lock} Cargo.lock 25 ''; 26 27 doCheck = false; 28 29 meta = with lib; { 30 description = "Tools for analyzing ITM traces"; 31 homepage = "https://github.com/japaric/itm-tools"; 32 license = with licenses; [ asl20 mit ]; 33 maintainers = with maintainers; [ hh sb0 ]; 34 }; 35}