2015-06-02 11:54:26 +00:00
|
|
|
with import <nixpkgs> {};
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yjp-${version}";
|
2015-12-05 11:33:08 +00:00
|
|
|
version = "2015-build-15082";
|
2015-06-02 11:54:26 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2015-06-23 08:44:00 +00:00
|
|
|
url = "https://www.yourkit.com/download/${name}.zip";
|
2015-12-05 11:33:08 +00:00
|
|
|
sha256 = "1szwzqyn7mj12wibjsrh02fibgr7wa2rbyp1mhzdzm5hjs49vn2r";
|
2015-06-02 11:54:26 +00:00
|
|
|
};
|
|
|
|
|
2015-06-23 08:44:00 +00:00
|
|
|
nativeBuildInputs = [ unzip makeWrapper patchelf ];
|
2015-06-02 11:54:26 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -ra ./ $out/yjp
|
|
|
|
chmod +x $out/yjp/bin/*/yjp_dc
|
2015-06-23 08:44:00 +00:00
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/yjp/bin/linux-x86-64/yjp_dc
|
2015-06-02 11:54:26 +00:00
|
|
|
makeWrapper $out/yjp/bin/yjp.sh $out/bin/yjp \
|
|
|
|
--prefix PATH : ${jdk}
|
|
|
|
'';
|
|
|
|
}
|