sonar-scanner-bin: init at 3.3.0.1492
This commit is contained in:
parent
3133d59a7f
commit
c7e1ac5a27
2 changed files with 49 additions and 0 deletions
47
pkgs/tools/security/sonar-scanner-bin/default.nix
Normal file
47
pkgs/tools/security/sonar-scanner-bin/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ stdenv, lib, fetchurl, unzip, jre }:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
version = "3.3.0.1492";
|
||||||
|
|
||||||
|
sonarScannerArchPackage = {
|
||||||
|
"x86_64-linux" = {
|
||||||
|
url = "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${version}-linux.zip";
|
||||||
|
sha256 = "1vn22d1i14440wlym0kxzbmjlxd9x9b0wc2ifm8fwig1xvnwpjwd";
|
||||||
|
};
|
||||||
|
"x86_64-darwin" = {
|
||||||
|
url = "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${version}-macosx.zip";
|
||||||
|
sha256 = "1m7cplak63m2rmad7f2s1iksi1qn43m2h1jm0qh3m219xcpl632i";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
inherit version;
|
||||||
|
name = "sonar-scanner-bin-${version}";
|
||||||
|
|
||||||
|
src = fetchurl sonarScannerArchPackage.${stdenv.hostPlatform.system};
|
||||||
|
|
||||||
|
buildInputs = [ unzip ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/lib
|
||||||
|
cp -r lib/* $out/lib/
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp bin/* $out/bin/
|
||||||
|
mkdir -p $out/conf
|
||||||
|
cp conf/* $out/conf/
|
||||||
|
'';
|
||||||
|
|
||||||
|
fixupPhase = ''
|
||||||
|
substituteInPlace $out/bin/sonar-scanner \
|
||||||
|
--replace "\$sonar_scanner_home/jre" "${lib.getBin jre}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = https://github.com/SonarSource/sonar-scanner-cli;
|
||||||
|
description = "SonarQube Scanner used to start code analysis";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ peterromfeldhk ];
|
||||||
|
platforms = builtins.attrNames sonarScannerArchPackage;
|
||||||
|
};
|
||||||
|
}
|
|
@ -5493,6 +5493,8 @@ in
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sonar-scanner-bin = callPackage ../tools/security/sonar-scanner-bin { };
|
||||||
|
|
||||||
solr = callPackage ../servers/search/solr { };
|
solr = callPackage ../servers/search/solr { };
|
||||||
|
|
||||||
solvespace = callPackage ../applications/graphics/solvespace { };
|
solvespace = callPackage ../applications/graphics/solvespace { };
|
||||||
|
|
Loading…
Reference in a new issue