From a67194f905f0b41d072e0485a2574feb44df5ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Fri, 22 Nov 2024 22:06:49 +0100 Subject: [PATCH] ciscoPacketTracer8: allow overriding src --- pkgs/by-name/ci/ciscoPacketTracer8/package.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ci/ciscoPacketTracer8/package.nix b/pkgs/by-name/ci/ciscoPacketTracer8/package.nix index f21558d9de360..4f0801c984b5f 100644 --- a/pkgs/by-name/ci/ciscoPacketTracer8/package.nix +++ b/pkgs/by-name/ci/ciscoPacketTracer8/package.nix @@ -25,6 +25,7 @@ copyDesktopItems, makeDesktopItem, version ? "8.2.2", + packetTracerSource ? null, }: let @@ -43,11 +44,15 @@ let name = "ciscoPacketTracer8-unwrapped"; inherit version; - src = requireFile { - name = names.${version}; - hash = hashes.${version}; - url = "https://www.netacad.com"; - }; + src = + if (packetTracerSource != null) then + packetTracerSource + else + requireFile { + name = names.${version}; + hash = hashes.${version}; + url = "https://www.netacad.com"; + }; buildInputs = [