From 8dad48e06a7df8861b7ccb6ba05fbddff4270174 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Sat, 1 Aug 2026 12:41:55 +0200 Subject: [PATCH] hexagonrpc: add tools output with sscregistrygen `sscregistrygen` is used to create (sensor) registry files. Put into a separate tools output to not pollute the closures of devices not needing this. --- pkgs/by-name/he/hexagonrpc/package.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/by-name/he/hexagonrpc/package.nix b/pkgs/by-name/he/hexagonrpc/package.nix index fd21a813f146..dc0346b868ef 100644 --- a/pkgs/by-name/he/hexagonrpc/package.nix +++ b/pkgs/by-name/he/hexagonrpc/package.nix @@ -4,6 +4,8 @@ fetchFromGitHub, meson, ninja, + pkg-config, + json_c, }: stdenv.mkDerivation (finalAttrs: { @@ -17,11 +19,27 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-OC6wXBCIW4XznWG0zzxRK3BzWMVK2Jq/gTL36sJV1PE="; }; + outputs = [ + "out" + "tools" + ]; + nativeBuildInputs = [ meson ninja + pkg-config ]; + buildInputs = [ + json_c + ]; + + # sscregistrygen is only compiled when json-c is available and meson doesn't install it + postInstall = '' + mkdir -p $tools/bin + install -Dm755 tools/sscregistrygen $tools/bin/sscregistrygen + ''; + meta = { description = "Daemon to communicate with Qualcomm DSPs"; homepage = "https://github.com/linux-msm/hexagonrpc";