depot/third_party/nixpkgs/pkgs/development/tools/rust/measureme/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

31 lines
737 B
Nix

{ lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "measureme";
version = "10.1.1";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "measureme";
rev = version;
hash = "sha256-RCh6fTa4d+/Fj5ID5Su3pCZj/O+FhITzfKixXu9G550=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"analyzeme-9.2.0" = "sha256-YOZiux4ouWBToGFx0+fiqjcyrnSjwc+8Qfi2rLGT/18=";
};
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
meta = with lib; {
description = "Support crate for rustc's self-profiling feature";
homepage = "https://github.com/rust-lang/measureme";
license = licenses.asl20;
maintainers = [ maintainers.t4ccer ];
};
}