dtrx: remove

Uses python2 and the upstream homepage is abandoned, the download link
is dead.
This commit is contained in:
Martin Weinelt 2022-01-02 03:20:30 +01:00
parent cd7ba30786
commit 64e2164ef3
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
3 changed files with 1 additions and 47 deletions

View file

@ -1,45 +0,0 @@
{ lib, fetchurl, python2Packages
, gnutar, unzip, lhasa, rpm, binutils, cpio, gzip, p7zip, cabextract, unrar, unshield
, bzip2, xz, lzip
# unzip is handled by p7zip
, unzipSupport ? false
, 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 ]);
in python2Packages.buildPythonApplication rec {
pname = "dtrx";
version = "7.1";
src = fetchurl {
url = "https://brettcsmith.org/2007/dtrx/dtrx-${version}.tar.gz";
sha256 = "15yf4n27zbhvv0byfv3i89wl5zn6jc2wbc69lk5a3m6rx54gx6hw";
};
postInstall = ''
wrapProgram "$out/bin/dtrx" --prefix PATH : "${archivers}"
'';
checkPhase = ''
python2 tests/compare.py
'';
checkInputs = with python2Packages; [
pyyaml
];
# custom test suite fails
doCheck = false;
meta = with lib; {
description = "Do The Right Extraction: A tool for taking the hassle out of extracting archives";
homepage = "https://brettcsmith.org/2007/dtrx/";
license = licenses.gpl3Plus;
maintainers = [ maintainers.spwhitt ];
platforms = platforms.all;
};
}

View file

@ -214,6 +214,7 @@ mapAliases ({
double_conversion = double-conversion; # 2017-11-22
docker_compose = docker-compose; # 2018-11-10
draftsight = throw "draftsight has been removed, no longer available as freeware"; # added 2020-08-14
dtrx = throw "dtrx has been removed from nixpkgs as the upstream has abandoned the project."; # added 2022-01-01
dvb_apps = throw "dvb_apps has been removed."; # added 2020-11-03
dwarf_fortress = dwarf-fortress; # added 2016-01-23
dwm-git = throw "dwm-git has been removed from nixpkgs, as it had no updates for 2 years not serving it's purpose."; # added 2021-02-07

View file

@ -2872,8 +2872,6 @@ with pkgs;
dtools = callPackage ../development/tools/dtools { };
dtrx = callPackage ../tools/compression/dtrx { };
dua = callPackage ../tools/misc/dua {
inherit (darwin.apple_sdk.frameworks) Foundation;
};