mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
31 lines
829 B
Nix
31 lines
829 B
Nix
{ lib, stdenv, pkgsBuildBuild, rustPlatform, fetchFromGitHub, pkg-config, libunwind, python3 }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "py-spy";
|
|
version = "0.3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "benfred";
|
|
repo = "py-spy";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-O6DbY/0ZI+BeG22jd9snbE718Y2vv7fqmeDdGWTnqfY=";
|
|
};
|
|
|
|
NIX_CFLAGS_COMPILE = "-L${libunwind}/lib";
|
|
|
|
# error: linker `arm-linux-gnueabihf-gcc` not found
|
|
preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
|
export RUSTFLAGS="-Clinker=$CC"
|
|
'';
|
|
|
|
checkInputs = [ python3 ];
|
|
|
|
cargoSha256 = "sha256-hmqrVGNu3zb109TQfhLI3wvGVnlc4CfbkrIKMfRSn7M=";
|
|
|
|
meta = with lib; {
|
|
description = "Sampling profiler for Python programs";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.lnl7 ];
|
|
};
|
|
}
|