cov-build: 7.0.2 -> 2022.12.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, requireFile }:
|
||||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
let
|
||||
message = ''
|
||||
@@ -8,23 +8,25 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cov-build";
|
||||
version = "7.0.2";
|
||||
version = "2022.12.2";
|
||||
|
||||
src =
|
||||
if stdenv.hostPlatform.system == "i686-linux"
|
||||
then requireFile {
|
||||
name = "cov-analysis-linux32-${version}.tar.gz";
|
||||
sha256 = "0i06wbd7blgx9adh9w09by4i18vwmldfp9ix97a5dph2cjymsviy";
|
||||
inherit message;
|
||||
then fetchurl {
|
||||
url = "https://archive.org/download/cov-analysis-linux-${version}.tar/cov-analysis-linux-${version}.tar.gz";
|
||||
hash = "sha256-Jr9bMUo9GRp+dgoAPqKxaTqWYWh4djGArdG9ukUK+ZY=";
|
||||
}
|
||||
else requireFile {
|
||||
name = "cov-analysis-linux64-${version}.tar.gz";
|
||||
sha256 = "0iby75p0g8gv7b501xav47milr8m9781h0hcgm1ch6x3qj6irqd8";
|
||||
inherit message;
|
||||
};
|
||||
else if stdenv.hostPlatform.system == "x86_64-linux"
|
||||
then fetchurl {
|
||||
url = "https://archive.org/download/cov-analysis-linux64-${version}.tar/cov-analysis-linux64-${version}.tar.gz";
|
||||
hash = "sha256-CyNKILJXlDMOCXbZZF4r/knz0orRx32oSj+Kpq/nxXQ=";
|
||||
}
|
||||
else throw "Unsupported platform '${stdenv.hostPlatform.system}'";
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
dontStrip = true;
|
||||
buildPhase = false;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/libexec
|
||||
mv * $out/libexec
|
||||
@@ -38,6 +40,8 @@ stdenv.mkDerivation rec {
|
||||
done
|
||||
'';
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
meta = {
|
||||
description = "Coverity Scan build tools";
|
||||
homepage = "https://scan.coverity.com";
|
||||
|
||||
Reference in New Issue
Block a user