From 9b3ca0c6149bb222da800a89cf9b6b2bc838dc4c Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Tue, 26 May 2020 16:20:47 +0200 Subject: [PATCH] dtrx: remove p7zip, since it's unsafe --- pkgs/tools/compression/dtrx/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/compression/dtrx/default.nix b/pkgs/tools/compression/dtrx/default.nix index 81a446066d97..edca969a1e84 100644 --- a/pkgs/tools/compression/dtrx/default.nix +++ b/pkgs/tools/compression/dtrx/default.nix @@ -1,15 +1,18 @@ {stdenv, lib, fetchurl, pythonPackages -, gnutar, unzip, lhasa, rpm, binutils, cpio, gzip, p7zip, cabextract, unrar, unshield +, gnutar, unzip, lhasa, rpm, binutils, cpio, gzip, cabextract, unrar, unshield , bzip2, xz, lzip -# unzip is handled by p7zip -, unzipSupport ? false +# unsafe: +# ,p7zip +# unzip is no longer handled by p7zip, since it's unsafe +, unzipSupport ? true , unrarSupport ? false }: let - archivers = lib.makeBinPath ([ gnutar lhasa rpm binutils cpio gzip p7zip cabextract unshield ] - ++ lib.optional (unzipSupport) unzip - ++ lib.optional (unrarSupport) unrar - ++ [ bzip2 xz lzip ]); + # p7zip + archivers = lib.makeBinPath ([ gnutar lhasa rpm binutils cpio gzip cabextract unshield ] + ++ lib.optional (unzipSupport) unzip + ++ lib.optional (unrarSupport) unrar + ++ [ bzip2 xz lzip ]); in pythonPackages.buildPythonApplication rec { pname = "dtrx";