1 { lib, stdenv, requireFile }:
5 Register an account at https://scan.coverity.com, download the
6 build tools, and add it to the nix store with nix-prefetch-url
9 stdenv.mkDerivation rec {
14 if stdenv.hostPlatform.system == "i686-linux"
16 name = "cov-analysis-linux32-${version}.tar.gz";
17 sha256 = "0i06wbd7blgx9adh9w09by4i18vwmldfp9ix97a5dph2cjymsviy";
21 name = "cov-analysis-linux64-${version}.tar.gz";
22 sha256 = "0iby75p0g8gv7b501xav47milr8m9781h0hcgm1ch6x3qj6irqd8";
29 mkdir -p $out/bin $out/libexec
31 for x in cov-build cov-capture cov-configure cov-emit cov-emit-java \
32 cov-export-cva cov-extract-scm cov-help cov-import-scm cov-link \
33 cov-internal-clang cov-internal-emit-clang cov-internal-nm \
34 cov-internal-emit-java-bytecode cov-internal-reduce cov-translate \
35 cov-preprocess cov-internal-pid-to-db cov-manage-emit \
36 cov-manage-history; do
37 ln -s $out/libexec/bin/$x $out/bin/$x;
42 description = "Coverity Scan build tools";
43 homepage = "https://scan.coverity.com";
44 license = lib.licenses.unfreeRedistributable;
45 platforms = lib.platforms.linux;
46 maintainers = [ lib.maintainers.thoughtpolice ];