nixpkgs/pkgs/development/tools/dump_syms/default.nix
Martin Weinelt 02b1c83146
Merge pull request #294950 from mweinelt/dump_syms-2.3.1
dump_syms: 2.3.0 -> 2.3.1
2024-03-22 03:41:35 +01:00

65 lines
1.5 KiB
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
# darwin
, Security
, SystemConfiguration
# tests
, firefox-esr-unwrapped
, firefox-unwrapped
, thunderbird-unwrapped
}:
let
pname = "dump_syms";
version = "2.3.1";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "mozilla";
repo = pname;
rev = "v${version}";
hash = "sha256-mSup3AMYsPu/Az6QXhdCFSxGcIpel4zNN0g/95gPDS0=";
};
cargoSha256 = "sha256-INzCyF/tvCp4L6Btrw8AGTBAgdFiBlywzO3+SSE4beI=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals (stdenv.isDarwin) [
Security
SystemConfiguration
];
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"
];
passthru.tests = {
inherit firefox-esr-unwrapped firefox-unwrapped thunderbird-unwrapped;
};
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";
mainProgram = "dump_syms";
license = licenses.asl20;
homepage = "https://github.com/mozilla/dump_syms/";
maintainers = with maintainers; [ hexa ];
};
}