diff options
Diffstat (limited to 'pkgs/by-name/ni/nixseparatedebuginfod2/package.nix')
| -rw-r--r-- | pkgs/by-name/ni/nixseparatedebuginfod2/package.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/by-name/ni/nixseparatedebuginfod2/package.nix b/pkgs/by-name/ni/nixseparatedebuginfod2/package.nix new file mode 100644 index 000000000000..2cffac191eef --- /dev/null +++ b/pkgs/by-name/ni/nixseparatedebuginfod2/package.nix @@ -0,0 +1,52 @@ +{ + 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"; + }; +} |
