From 3759827bdfb888f708a50d2cf81881952e3f5223 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 24 Oct 2023 17:21:59 +0000 Subject: [PATCH] cov-build: use autoPatchelfHook --- .../tools/analysis/cov-build/default.nix | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/analysis/cov-build/default.nix b/pkgs/development/tools/analysis/cov-build/default.nix index 044c203f0aad..61c8dda2e6da 100644 --- a/pkgs/development/tools/analysis/cov-build/default.nix +++ b/pkgs/development/tools/analysis/cov-build/default.nix @@ -1,11 +1,16 @@ -{ lib, stdenv, fetchurl }: +{ lib +, stdenv +, fetchurl + +, autoPatchelfHook + +, alsa-lib +, libxcrypt-legacy +, lttng-ust_2_12 +, xorg +, zlib +}: -let - message = '' - Register an account at https://scan.coverity.com, download the - build tools, and add it to the nix store with nix-prefetch-url - ''; -in stdenv.mkDerivation rec { pname = "cov-build"; version = "2022.12.2"; @@ -23,6 +28,18 @@ stdenv.mkDerivation rec { } else throw "Unsupported platform '${stdenv.hostPlatform.system}'"; + nativeBuildInputs = [ autoPatchelfHook ]; + + buildInputs = [ + alsa-lib + libxcrypt-legacy + lttng-ust_2_12 + xorg.libXext + xorg.libXrender + xorg.libXtst + zlib + ]; + dontConfigure = true; dontBuild = true;