nixpkgs/pkgs/by-name/me/measureme/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
622 B
Nix
Raw Normal View History

2024-09-03 04:20:22 +00:00
{
lib,
fetchFromGitHub,
rustPlatform,
}:
2023-06-19 23:17:45 +00:00
rustPlatform.buildRustPackage rec {
pname = "measureme";
2024-09-03 04:18:23 +00:00
version = "12.0.0";
2023-06-19 23:17:45 +00:00
src = fetchFromGitHub {
owner = "rust-lang";
repo = "measureme";
rev = version;
2024-09-03 04:18:23 +00:00
hash = "sha256-Zgl8iyBDVwqZnbfqC06DMuo0S/hV6pl812hkiovmS+I=";
2023-06-19 23:17:45 +00:00
};
2024-09-03 04:18:23 +00:00
cargoLock.lockFile = ./Cargo.lock;
2023-06-19 23:17:45 +00:00
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 ];
};
}