2025-07-27 23:01:05 +02:00

53 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
libarchive,
openssl,
pkg-config,
bubblewrap,
elfutils,
nix,
nixosTests,
}:
rustPlatform.buildRustPackage rec {
pname = "nixseparatedebuginfod2";
version = "0.1.0";
src = fetchFromGitHub {
owner = "symphorien";
repo = "nixseparatedebuginfod2";
tag = "v${version}";
hash = "sha256-bk+l/oWAPuWV6mnh9Pr/mru3BZjos08IfzEGUEFSW1E=";
};
cargoHash = "sha256-HmtFso6uF2GsjIA0FPVL4S3S+lwQUrg7N576UaekXpU=";
buildInputs = [
libarchive
openssl
];
nativeBuildInputs = [ pkg-config ];
nativeCheckInputs = [
bubblewrap
elfutils
nix
];
env.OPENSSL_NO_VENDOR = "1";
passthru.tests = { inherit (nixosTests) nixseparatedebuginfod2; };
meta = {
description = "Downloads and provides debug symbols and source code for nix derivations to gdb and other debuginfod-capable debuggers as needed";
homepage = "https://github.com/symphorien/nixseparatedebuginfod2";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.symphorien ];
platforms = lib.platforms.linux;
mainProgram = "nixseparatedebuginfod2";
};
}