1 { lib, stdenv, fetchurl, unzip, jre, makeDesktopItem, copyDesktopItems }:
4 desktopItem = makeDesktopItem {
5 desktopName = "JDiskReport";
6 genericName = "A graphical utility to visualize disk usage";
7 categories = [ "Utility" ];
12 stdenv.mkDerivation rec {
13 pname = "jdiskreport";
17 url = "https://www.jgoodies.com/download/jdiskreport/jdiskreport-${lib.replaceStrings ["."] ["_"] version}.zip";
18 sha256 = "0d5mzkwsbh9s9b1vyvpaawqc09b0q41l2a7pmwf7386b1fsx6d58";
21 nativeBuildInputs = [ copyDesktopItems unzip ];
31 mkdir -p $out/share/java
32 mv $jar $out/share/java
35 cat > $out/bin/jdiskreport <<EOF
37 exec $jre/bin/java -jar $out/share/java/$(basename $jar)
39 chmod +x $out/bin/jdiskreport
44 desktopItems = [ desktopItem ];
47 homepage = "http://www.jgoodies.com/freeware/jdiskreport/";
48 description = "A graphical utility to visualize disk usage";
49 sourceProvenance = with sourceTypes; [ binaryBytecode ];
50 license = licenses.unfreeRedistributable; #TODO freedist, libs under BSD-3
51 platforms = [ "x86_64-linux" "x86_64-darwin" ];
52 maintainers = with maintainers; [ kylesferrazza ];