depot/third_party/nixpkgs/pkgs/by-name/me/measureme/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

30 lines
622 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "measureme";
version = "12.0.0";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "measureme";
rev = version;
hash = "sha256-Zgl8iyBDVwqZnbfqC06DMuo0S/hV6pl812hkiovmS+I=";
};
cargoLock.lockFile = ./Cargo.lock;
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 ];
};
}