lol

samply: init at 0.11.0

https://github.com/mstange/samply

figsoda ffe2bb95 82bf0a1e

+57
+55
pkgs/development/tools/misc/samply/default.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchCrate 4 + , jq 5 + , moreutils 6 + , stdenv 7 + , darwin 8 + }: 9 + 10 + rustPlatform.buildRustPackage rec { 11 + pname = "samply"; 12 + version = "0.11.0"; 13 + 14 + src = fetchCrate { 15 + inherit pname version; 16 + hash = "sha256-V0uAS7Oo7wv0yU5CgqqYhltwM5PXJ3GP/TLVZV2GkkI="; 17 + }; 18 + 19 + cargoHash = "sha256-jsuICNVY3noZi/+mgVj9uUu53z+5bW9Vi5CBKcHOqSI="; 20 + 21 + # the dependencies linux-perf-data and linux-perf-event-reader contains both README.md and Readme.md, 22 + # which causes a hash mismatch on systems with a case-insensitive filesystem 23 + # this removes the readme files and updates cargo's checksum file accordingly 24 + depsExtraArgs = { 25 + nativeBuildInputs = [ 26 + jq 27 + moreutils 28 + ]; 29 + 30 + postBuild = '' 31 + for crate in linux-perf-data linux-perf-event-reader; do 32 + pushd $name/$crate 33 + 34 + rm -f README.md Readme.md 35 + jq 'del(.files."README.md") | del(.files."Readme.md")' \ 36 + .cargo-checksum.json -c \ 37 + | sponge .cargo-checksum.json 38 + 39 + popd 40 + done 41 + ''; 42 + }; 43 + 44 + buildInputs = lib.optionals stdenv.isDarwin [ 45 + darwin.apple_sdk.frameworks.CoreServices 46 + ]; 47 + 48 + meta = with lib; { 49 + description = "A command line profiler for macOS and Linux"; 50 + homepage = "https://github.com/mstange/samply"; 51 + changelog = "https://github.com/mstange/samply/releases/tag/samply-v${version}"; 52 + license = with licenses; [ asl20 mit ]; 53 + maintainers = with maintainers; [ figsoda ]; 54 + }; 55 + }
+2
pkgs/top-level/all-packages.nix
··· 19729 19729 19730 19730 saleae-logic-2 = callPackage ../development/tools/misc/saleae-logic-2 { }; 19731 19731 19732 + samply = callPackage ../development/tools/misc/samply { }; 19733 + 19732 19734 sauce-connect = callPackage ../development/tools/sauce-connect { }; 19733 19735 19734 19736 sawjap = callPackage ../development/tools/java/sawjap { };