depot/third_party/nixpkgs/pkgs/by-name/ca/cargo-pgo/package.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

29 lines
757 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-pgo";
version = "0.2.8";
src = fetchFromGitHub {
owner = "kobzol";
repo = pname;
rev = "v${version}";
hash = "sha256-yt9QAgpu667JkdNS7OiB/wB9BLXXpis0ZhWjYuETteU=";
};
cargoHash = "sha256-T49RfBInMZeTPT7HhZIwhfK48ORKDD14fcShC6lFApI=";
# Integration tests do not run in Nix build environment due to needing to
# create and build Cargo workspaces.
doCheck = false;
meta = with lib; {
description = "Cargo subcommand for optimizing Rust binaries/libraries with PGO and BOLT";
homepage = "https://github.com/kobzol/cargo-pgo";
license = with licenses; [ mit ];
maintainers = with maintainers; [ dannixon ];
};
}