Commit 3759827b authored by Bernardo Meurer's avatar Bernardo Meurer
Browse files

cov-build: use autoPatchelfHook

parent 967fb8ef
Loading
Loading
Loading
Loading
+24 −7
Original line number Diff line number Diff line
{ 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;