2024-01-13 08:15:51 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, libarchive
|
|
|
|
, openssl
|
|
|
|
, sqlite
|
|
|
|
, pkg-config
|
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nixseparatedebuginfod";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.3.3";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "symphorien";
|
|
|
|
repo = "nixseparatedebuginfod";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-KQzMLAl/2JYy+EVBIhUTouOefOX6OCE3iIZONFMQivk=";
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
cargoHash = "sha256-UzPWJfkVLqCuMdNcAfQS38lgtWCO9HhCf5ZCqzWQ6jY=";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
# tests need a working nix install with access to the internet
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libarchive
|
|
|
|
openssl
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
inherit (nixosTests) nixseparatedebuginfod;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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/nixseparatedebuginfod";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.symphorien ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
mainProgram = "nixseparatedebuginfod";
|
|
|
|
};
|
|
|
|
}
|