From 97a9d12b6c31a58e9067eae7cdcd3f53055c124c Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 31 Jul 2023 00:30:39 +0000 Subject: [PATCH] dtrx: don't double-wrap the binary --- pkgs/tools/compression/dtrx/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/compression/dtrx/default.nix b/pkgs/tools/compression/dtrx/default.nix index 83035fe26e20..2bfe975d033c 100644 --- a/pkgs/tools/compression/dtrx/default.nix +++ b/pkgs/tools/compression/dtrx/default.nix @@ -31,16 +31,16 @@ python3Packages.buildPythonApplication rec { sha256 = "sha256-LB3F6jcqQPRsjFO4L2fPAPnacDAdtcaadgGbwXA9LAw="; }; - postInstall = + makeWrapperArgs = let archivers = lib.makeBinPath ( [ gnutar lhasa rpm binutils cpio gzip p7zip cabextract unshield bzip2 xz lzip ] ++ lib.optional (unzipSupport) unzip ++ lib.optional (unrarSupport) unrar ); - in '' - wrapProgram "$out/bin/dtrx" --prefix PATH : "${archivers}" - ''; + in [ + ''--prefix PATH : "${archivers}"'' + ]; nativeBuildInputs = [ python3Packages.invoke ];