hoarder: 0.21.0 -> 0.22.0
[NixPkgs.git] / pkgs / by-name / ni / nixseparatedebuginfod / package.nix
blob10fa7221513a15c0684b6df83f67bda76b1cfd40
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5   libarchive,
6   openssl,
7   rust-jemalloc-sys,
8   sqlite,
9   pkg-config,
10   nixosTests,
13 rustPlatform.buildRustPackage rec {
14   pname = "nixseparatedebuginfod";
15   version = "0.4.0";
17   src = fetchFromGitHub {
18     owner = "symphorien";
19     repo = "nixseparatedebuginfod";
20     rev = "v${version}";
21     hash = "sha256-sVQ6UgQvSTEIxXPxISeTI9tqAdJlxQpLxq1h4I31r6k=";
22   };
24   useFetchCargoVendor = true;
25   cargoHash = "sha256-vaCmRr1hXF0BSg/dl3LYyd7c1MdPKIv6KgDgGEzqqJQ=";
27   # tests need a working nix install with access to the internet
28   doCheck = false;
30   buildInputs = [
31     libarchive
32     openssl
33     rust-jemalloc-sys
34     sqlite
35   ];
37   nativeBuildInputs = [ pkg-config ];
39   passthru = {
40     tests = {
41       inherit (nixosTests) nixseparatedebuginfod;
42     };
43   };
45   meta = with lib; {
46     description = "Downloads and provides debug symbols and source code for nix derivations to gdb and other debuginfod-capable debuggers as needed";
47     homepage = "https://github.com/symphorien/nixseparatedebuginfod";
48     license = licenses.gpl3Only;
49     maintainers = [ maintainers.symphorien ];
50     platforms = platforms.linux;
51     mainProgram = "nixseparatedebuginfod";
52   };