From 9f6ee02d3553381bbe905ad659326d01ad91d68b Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Wed, 25 Aug 2021 15:30:37 -0400 Subject: [PATCH] packettracer: block net --- pkgs/packettracer/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/packettracer/default.nix b/pkgs/packettracer/default.nix index 752fbfc..56b4e4d 100644 --- a/pkgs/packettracer/default.nix +++ b/pkgs/packettracer/default.nix @@ -1,7 +1,7 @@ { stdenv , alsaLib , autoPatchelfHook -, buildFHSUserEnv +, buildFHSUserEnvBubblewrap , dbus , dpkg , expat @@ -20,6 +20,9 @@ , nspr , nss , xlibs + +, blockInternet ? true + }: assert stdenv.hostPlatform.system == "x86_64-linux"; @@ -95,8 +98,9 @@ let }; in -buildFHSUserEnv { +buildFHSUserEnvBubblewrap { name = "packettracer"; + unshareNet = blockInternet; runScript = "${ptFiles}/bin/packettracer"; targetPkgs = pkgs: [ libudev0-shim ];