Revert "dtrx: remove p7zip, since it's unsafe"

This reverts commit 9b3ca0c614.
p7zip is now switched to a maintained fork
This commit is contained in:
Bart Brouns 2020-06-11 14:39:48 +02:00
parent 955701709f
commit 1683a5f146

View File

@ -1,18 +1,15 @@
{stdenv, lib, fetchurl, pythonPackages
, gnutar, unzip, lhasa, rpm, binutils, cpio, gzip, cabextract, unrar, unshield
, gnutar, unzip, lhasa, rpm, binutils, cpio, gzip, p7zip, cabextract, unrar, unshield
, bzip2, xz, lzip
# unsafe:
# ,p7zip
# unzip is no longer handled by p7zip, since it's unsafe
, unzipSupport ? true
# unzip is handled by p7zip
, unzipSupport ? false
, unrarSupport ? false }:
let
# p7zip
archivers = lib.makeBinPath ([ gnutar lhasa rpm binutils cpio gzip cabextract unshield ]
++ lib.optional (unzipSupport) unzip
++ lib.optional (unrarSupport) unrar
++ [ bzip2 xz lzip ]);
archivers = lib.makeBinPath ([ gnutar lhasa rpm binutils cpio gzip p7zip cabextract unshield ]
++ lib.optional (unzipSupport) unzip
++ lib.optional (unrarSupport) unrar
++ [ bzip2 xz lzip ]);
in pythonPackages.buildPythonApplication rec {
pname = "dtrx";