Update yourkit derivation.

This commit is contained in:
Gabriel Ebner 2015-06-23 10:44:00 +02:00
parent 239a49b17e
commit e357bf3d12

@ -1,19 +1,20 @@
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "yjp-${version}";
version = "2015-build-15056";
version = "2015-build-15062";
src = fetchzip {
url = https://www.yourkit.com/download/yjp-2015-build-15056.zip;
sha256 = "0y3d3fs91w0qbdvbm4nr02rmkbqmndl7j4rhxwzibs815ci659jn";
url = "https://www.yourkit.com/download/${name}.zip";
sha256 = "0dwfha6vid4nq21zm74v248yr83wpjfs1dd7ga8gykbs4insp66q";
};
buildInputs = [ unzip makeWrapper ];
nativeBuildInputs = [ unzip makeWrapper patchelf ];
installPhase = ''
mkdir -p $out
cp -ra ./ $out/yjp
chmod +x $out/yjp/bin/*/yjp_dc
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/yjp/bin/linux-x86-64/yjp_dc
makeWrapper $out/yjp/bin/yjp.sh $out/bin/yjp \
--prefix PATH : ${jdk}
'';