mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
49 lines
1.5 KiB
Nix
49 lines
1.5 KiB
Nix
{ stdenv, fetchzip, lib, makeWrapper, makeDesktopItem, jdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.1.10";
|
|
pname = "visualvm";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/visualvm/visualvm.src/releases/download/${version}/visualvm_${builtins.replaceStrings ["."] [""] version}.zip";
|
|
sha256 = "sha256-CmbAYJzhzPIgUfo1M0JuwhNz6Bmymb0Fr1ERdmgQ95I=";
|
|
};
|
|
|
|
desktopItem = makeDesktopItem {
|
|
name = "visualvm";
|
|
exec = "visualvm";
|
|
comment = "Java Troubleshooting Tool";
|
|
desktopName = "VisualVM";
|
|
genericName = "Java Troubleshooting Tool";
|
|
categories = [ "Development" ];
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
find . -type f -name "*.dll" -o -name "*.exe" -delete;
|
|
|
|
substituteInPlace etc/visualvm.conf \
|
|
--replace "#visualvm_jdkhome=" "visualvm_jdkhome=" \
|
|
--replace "/path/to/jdk" "${jdk.home}" \
|
|
|
|
cp -r . $out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Visual interface for viewing information about Java applications";
|
|
mainProgram = "visualvm";
|
|
longDescription = ''
|
|
VisualVM is a visual tool integrating several commandline JDK
|
|
tools and lightweight profiling capabilities. Designed for both
|
|
production and development time use, it further enhances the
|
|
capability of monitoring and performance analysis for the Java
|
|
SE platform.
|
|
'';
|
|
homepage = "https://visualvm.github.io";
|
|
license = licenses.gpl2ClasspathPlus;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ michalrus moaxcp ];
|
|
};
|
|
}
|