summaryrefslogtreecommitdiff
path: root/pkgs/by-name/ni/nixseparatedebuginfod2/package.nix
diff options
context:
space:
mode:
authornixpkgs-ci[bot] <190413589+nixpkgs-ci[bot]@users.noreply.github.com>2025-08-11 00:24:16 +0000
committerGitHub <noreply@github.com>2025-08-11 00:24:16 +0000
commitef3238a84cc5d5b60de2aec6ecc7d434c8da1b5c (patch)
tree5605011b7d6dad28bac39254aa1488cadddac7c3 /pkgs/by-name/ni/nixseparatedebuginfod2/package.nix
parenthaskellPackages.cabal2nix-unstable: 2025-06-14 -> 2025-08-10 (diff)
parentbalena-cli: 22.1.5 -> 22.2.4 (#432566) (diff)
downloadnixpkgs-origin/haskell-updates.tar.gz
Merge b1b0d690fbb0e4a2fa029ab625a3b1646487fee1 into haskell-updatesorigin/haskell-updates
Diffstat (limited to 'pkgs/by-name/ni/nixseparatedebuginfod2/package.nix')
-rw-r--r--pkgs/by-name/ni/nixseparatedebuginfod2/package.nix52
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";
+ };
+}