nixpkgs/pkgs/development/tools/dump_syms/default.nix

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

53 lines
1.3 KiB
Nix
Raw Normal View History

2022-05-11 21:38:15 +00:00
{ lib
2022-05-17 12:40:13 +00:00
, stdenv
2022-05-11 21:38:15 +00:00
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
2022-05-17 12:40:13 +00:00
# darwin
, Security
2022-05-11 21:38:15 +00:00
}:
let
pname = "dump_syms";
version = "1.0.1";
2022-05-11 21:38:15 +00:00
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "mozilla";
repo = pname;
rev = "v${version}";
hash = "sha256-2OSni0PA0LfamOqdFQTRLgolF55z13owgFrqYYHuNX0=";
2022-05-11 21:38:15 +00:00
};
cargoSha256 = "sha256-ggJWweulbSJ8Femzv7uHLcrn1HTenw79AYIydE6y4ag=";
2022-05-11 21:38:15 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
2022-05-17 12:40:13 +00:00
] ++ lib.optionals (stdenv.isDarwin) [
Security
2022-05-11 21:38:15 +00:00
];
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"
];
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 ];
};
}