Skip to content

Commit

Permalink
ciscoPacketTracer8: allow overriding src
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Nov 29, 2024
1 parent f8e91e9 commit a67194f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pkgs/by-name/ci/ciscoPacketTracer8/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
copyDesktopItems,
makeDesktopItem,
version ? "8.2.2",
packetTracerSource ? null,
}:

let
Expand All @@ -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 =
[
Expand Down

0 comments on commit a67194f

Please sign in to comment.