21 desktopItem = makeDesktopItem {
28 desktopName = "Charles";
30 genericName = "Web Debugging Proxy";
31 icon = "charles-proxy";
33 "application/x-charles-savedsession"
34 "application/x-charles-savedsession+xml"
35 "application/x-charles-savedsession+json"
36 "application/har+json"
37 "application/vnd.tcpdump.pcap"
38 "application/x-charles-trace"
50 url = "https://www.charlesproxy.com/assets/release/${version}/charles-proxy-${version}${platform}.tar.gz";
54 ]; # HTTP 104 otherwise
57 nativeBuildInputs = [ makeWrapper ];
60 makeWrapper ${jdk}/bin/java $out/bin/charles \
61 --add-flags "-Xmx1024M -Dcharles.config='~/.charles.config' -jar $out/share/java/charles.jar"
63 for fn in lib/*.jar; do
64 install -D -m644 $fn $out/share/java/$(basename $fn)
67 mkdir -p $out/share/applications
68 ln -s ${desktopItem}/share/applications/* $out/share/applications/
70 mkdir -p $out/share/icons
71 cp -r icon $out/share/icons/hicolor
75 description = "Web Debugging Proxy";
76 homepage = "https://www.charlesproxy.com/";
77 maintainers = with maintainers; [
81 sourceProvenance = with sourceTypes; [ binaryBytecode ];
82 license = licenses.unfree;
83 platforms = platforms.unix;
92 sha256 = "KEQYb90kt41dS3TJLZqdaV9P3mQA9UPsEyiFb/knm3w=";
100 sha256 = "13zk82ny1w5zd9qcs9qkq0kdb22ni5byzajyshpxdfm4zv6p32ss";
102 mainProgram = "charles";