2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
|
|
|
|
# darwin
|
|
|
|
, Security
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
, firefox-esr-unwrapped
|
|
|
|
, firefox-unwrapped
|
|
|
|
, thunderbird-unwrapped
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "dump_syms";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2.1.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla";
|
|
|
|
repo = pname;
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-Q4opIGG1kOORECNB6al0oT4tjBe++ND6Eb4E86ED2+o=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
cargoSha256 = "sha256-j3bZaHFJEn/LW032CaRBaLN3Pb5GiQv1MReD0LFI8y8=";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals (stdenv.isDarwin) [
|
|
|
|
Security
|
|
|
|
];
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# Disable tests that require network access
|
|
|
|
# ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Temporary failure in name resolution" })) }', src/windows/pdb.rs:725:56
|
|
|
|
"--skip windows::pdb::tests::test_ntdll"
|
|
|
|
"--skip windows::pdb::tests::test_oleaut32"
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit firefox-esr-unwrapped firefox-unwrapped thunderbird-unwrapped;
|
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/mozilla/dump_syms/releases/tag/v${version}";
|
|
|
|
description = "Command-line utility for parsing the debugging information the compiler provides in ELF or stand-alone PDB files";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://github.com/mozilla/dump_syms/";
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|