15 ptFiles = stdenv.mkDerivation {
16 name = "PacketTracer7drv";
21 name = "PacketTracer_${builtins.replaceStrings ["."] [""] version}_amd64.deb";
22 hash = "sha256-w5gC0V3WHQC6J/uMEW2kX9hWKrS0mZZVWtZriN6s4n8=";
23 url = "https://www.netacad.com";
26 nativeBuildInputs = [ dpkg makeWrapper ];
30 makeWrapper "$out/opt/pt/bin/PacketTracer7" "$out/bin/packettracer7" \
31 --prefix LD_LIBRARY_PATH : "$out/opt/pt/bin"
35 desktopItem = makeDesktopItem {
36 name = "cisco-pt7.desktop";
37 desktopName = "Cisco Packet Tracer 7";
38 icon = "${ptFiles}/opt/pt/art/app.png";
39 exec = "packettracer7 %f";
40 mimeTypes = [ "application/x-pkt" "application/x-pka" "application/x-pkz" ];
44 name = "packettracer7";
45 runScript = "${ptFiles}/bin/packettracer7";
47 targetPkgs = pkgs: with pkgs; [
67 in stdenv.mkDerivation {
68 pname = "ciscoPacketTracer7";
75 ${lndir}/bin/lndir -silent ${fhs} $out
78 desktopItems = [ desktopItem ];
80 nativeBuildInputs = [ copyDesktopItems ];
83 description = "Network simulation tool from Cisco";
84 homepage = "https://www.netacad.com/courses/packet-tracer";
85 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
86 license = licenses.unfree;
87 maintainers = with maintainers; [ lucasew ];
88 platforms = [ "x86_64-linux" ];