14 stdenv.mkDerivation rec {
16 version = "2022.12.2";
19 if stdenv.hostPlatform.system == "i686-linux"
21 url = "https://archive.org/download/cov-analysis-linux-${version}.tar/cov-analysis-linux-${version}.tar.gz";
22 hash = "sha256-Jr9bMUo9GRp+dgoAPqKxaTqWYWh4djGArdG9ukUK+ZY=";
24 else if stdenv.hostPlatform.system == "x86_64-linux"
26 url = "https://archive.org/download/cov-analysis-linux64-${version}.tar/cov-analysis-linux64-${version}.tar.gz";
27 hash = "sha256-CyNKILJXlDMOCXbZZF4r/knz0orRx32oSj+Kpq/nxXQ=";
29 else throw "Unsupported platform '${stdenv.hostPlatform.system}'";
31 nativeBuildInputs = [ autoPatchelfHook ];
48 mkdir -p $out/bin $out/libexec
50 for x in cov-build cov-capture cov-configure cov-emit cov-emit-java \
51 cov-export-cva cov-extract-scm cov-help cov-import-scm cov-link \
52 cov-internal-clang cov-internal-emit-clang cov-internal-nm \
53 cov-internal-emit-java-bytecode cov-internal-reduce cov-translate \
54 cov-preprocess cov-internal-pid-to-db cov-manage-emit \
55 cov-manage-history; do
56 ln -s $out/libexec/bin/$x $out/bin/$x;
63 description = "Coverity Scan build tools";
64 homepage = "https://scan.coverity.com";
65 license = lib.licenses.unfreeRedistributable;
66 platforms = lib.platforms.linux;
67 maintainers = [ lib.maintainers.thoughtpolice ];