2015-06-02 11:54:26 +00:00
|
|
|
with import <nixpkgs> {};
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yjp-${version}";
|
2018-08-22 19:16:41 +00:00
|
|
|
version = "2017.02-b75";
|
2015-06-02 11:54:26 +00:00
|
|
|
|
2016-04-24 14:57:21 +00:00
|
|
|
src = fetchurl {
|
2018-01-04 10:01:42 +00:00
|
|
|
url = "https://www.yourkit.com/download/YourKit-JavaProfiler-${version}.zip";
|
2018-08-22 19:16:41 +00:00
|
|
|
sha256 = "0m0xjyp2plwpfgy2fps86k3cqv49268s4piasyszc00gf5n5cban";
|
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 \
|
2017-03-09 12:40:12 +00:00
|
|
|
--set YJP_JAVA_HOME ${jdk}
|
2015-06-02 11:54:26 +00:00
|
|
|
'';
|
|
|
|
}
|