[Nix-dev] sonarQube package
Augustin Borsu
augustin at sagacify.com
Tue Jan 12 00:27:34 CET 2016
Hello,
I'm a bit stuck so I thought I would try and ask the community if any
one has an idea.
I'm trying to make a package to run SonarQube on a nixos server and so
far I"ve gotten this far :
https://gist.github.com/aborsu/7ca170528686c8d11dea
{ stdenv, fetchurl, unzip, pkgs, makeWrapper, jre, utillinux, getopt,
procps }:
stdenv.mkDerivation rec {
name = "sonarqube-${version}";
version = "5.3";
src = fetchurl {
url =
"https://sonarsource.bintray.com/Distribution/sonarqube/${name}.zip";
sha256 =
"4e61ee3a01d5e447bcd64357df77e0377325c4a2bb5ceb2cdeb5a5d193443ba5";
};
meta = with stdenv.lib; {
description = "SonarQube is an open platform to manage code quality.";
homepage = http://www.sonarqube.org/;
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = [ ];
};
buildInputs = [ makeWrapper unzip procps ] ++
(if (!stdenv.isDarwin) then [utillinux] else [getopt]);
unpackPhase = ''
unzip $src
'';
installPhase = ''
mkdir -p $out
cp -R ${name}/conf ${name}/extensions ${name}/logs ${name}/web
${name}/data ${name}/lib ${name}/temp $out
${if pkgs.stdenv.isi686 then "cp -R ${name}/bin/linux-x86-32 $out/bin"
else if pkgs.stdenv.isx86_64 then"cp -R ${name}/bin/linux-x86-64
$out/bin"
else "echo 'architecture not yet supported'; exit -1;"}
sed -i s=/usr/bin/ps=${procps}/bin/ps= $out/bin/sonar.sh
'';
}
But now I have a very cryptic file not found error when I try to launch
the ./bin/wrapper file that is supposed to launch it all.
Any ideas?
Thanks in advance.
Augustin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160112/d4d84a6d/attachment.html
More information about the nix-dev
mailing list