Files
nixpkgs/pkgs/by-name/sc/scenic-view/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

92 lines
2.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
openjdk,
openjfx,
gradle_7,
makeDesktopItem,
makeWrapper,
}:
let
jdk = openjdk.override (
lib.optionalAttrs stdenv.hostPlatform.isLinux {
enableJavaFX = true;
openjfx_jdk = openjfx.override { withWebKit = true; };
}
);
pname = "scenic-view";
version = "11.0.2";
src = fetchFromGitHub {
owner = "JonathanGiles";
repo = "scenic-view";
rev = version;
sha256 = "1idfh9hxqs4fchr6gvhblhvjqk4mpl4rnpi84vn1l3yb700z7dwy";
};
gradle = gradle_7;
desktopItem = makeDesktopItem {
name = "scenic-view";
desktopName = "scenic-view";
exec = "scenic-view";
comment = "JavaFx application to visualize and modify the scenegraph of running JavaFx applications.";
mimeTypes = [
"application/java"
"application/java-vm"
"application/java-archive"
];
categories = [ "Development" ];
};
in
stdenv.mkDerivation rec {
inherit pname version src;
nativeBuildInputs = [
gradle
makeWrapper
];
mitmCache = gradle.fetchDeps {
inherit pname;
data = ./deps.json;
};
__darwinAllowLocalNetworking = true;
doCheck = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/scenic-view
cp build/libs/scenicview.jar $out/share/scenic-view/scenic-view.jar
makeWrapper ${jdk}/bin/java $out/bin/scenic-view --add-flags "-jar $out/share/scenic-view/scenic-view.jar"
runHook postInstall
'';
desktopItems = [ desktopItem ];
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "JavaFx application to visualize and modify the scenegraph of running JavaFx applications";
mainProgram = "scenic-view";
longDescription = ''
A JavaFX application designed to make it simple to understand the current state of your application scenegraph
and to also easily manipulate properties of the scenegraph without having to keep editing your code.
This lets you find bugs and get things pixel perfect without having to do the compile-check-compile dance.
'';
homepage = "https://github.com/JonathanGiles/scenic-view/";
sourceProvenance = with sourceTypes; [
fromSource
binaryBytecode # deps
];
license = licenses.gpl3Plus;
maintainers = with maintainers; [ wirew0rm ];
platforms = platforms.all;
};
}