cov-build: use autoPatchelfHook

This commit is contained in:
Bernardo Meurer 2023-10-24 17:21:59 +00:00
parent 967fb8ef7b
commit 3759827bdf

View file

@ -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 { stdenv.mkDerivation rec {
pname = "cov-build"; pname = "cov-build";
version = "2022.12.2"; version = "2022.12.2";
@ -23,6 +28,18 @@ stdenv.mkDerivation rec {
} }
else throw "Unsupported platform '${stdenv.hostPlatform.system}'"; 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; dontConfigure = true;
dontBuild = true; dontBuild = true;