acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / ni / nixseparatedebuginfod / package.nix
blobffd82b832032d693cce5b6d57826f5586dfe67f9
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , libarchive
5 , openssl
6 , rust-jemalloc-sys
7 , sqlite
8 , pkg-config
9 , nixosTests
12 rustPlatform.buildRustPackage rec {
13   pname = "nixseparatedebuginfod";
14   version = "0.4.0";
16   src = fetchFromGitHub {
17     owner = "symphorien";
18     repo = "nixseparatedebuginfod";
19     rev = "v${version}";
20     hash = "sha256-sVQ6UgQvSTEIxXPxISeTI9tqAdJlxQpLxq1h4I31r6k=";
21   };
23   cargoHash = "sha256-abHczsRzWDST6ji7yi/Iox1o8QHGjt5T7/KDwsYGYMk=";
25   # tests need a working nix install with access to the internet
26   doCheck = false;
28   buildInputs = [
29     libarchive
30     openssl
31     rust-jemalloc-sys
32     sqlite
33   ];
35   nativeBuildInputs = [ pkg-config ];
37   passthru = {
38     tests = {
39       inherit (nixosTests) nixseparatedebuginfod;
40     };
41   };
43   meta = with lib; {
44     description = "Downloads and provides debug symbols and source code for nix derivations to gdb and other debuginfod-capable debuggers as needed";
45     homepage = "https://github.com/symphorien/nixseparatedebuginfod";
46     license = licenses.gpl3Only;
47     maintainers = [ maintainers.symphorien ];
48     platforms = platforms.linux;
49     mainProgram = "nixseparatedebuginfod";
50   };