findimagedupes: drop
This commit is contained in:
parent
0d3bca361d
commit
f93ea48c58
|
@ -1,70 +0,0 @@
|
|||
{ lib, stdenv, fetchurl, makeWrapper, perl, perlPackages, installShellFiles }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "findimagedupes";
|
||||
version = "2.20.1";
|
||||
|
||||
# fetching this from GitHub does not contain the correct version number
|
||||
src = fetchurl {
|
||||
url = "http://www.jhnc.org/findimagedupes/findimagedupes-${version}.tar.gz";
|
||||
sha256 = "sha256-VYqSnOD/Ntr0RnktJ/R0t+Z8+NRExA2mAHT2unPt9/o=";
|
||||
};
|
||||
|
||||
# Work around the "unpacker appears to have produced no directories"
|
||||
setSourceRoot = "sourceRoot=$(pwd)";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
|
||||
buildInputs = [ perl ] ++ (with perlPackages; [
|
||||
DBFile
|
||||
FileMimeInfo
|
||||
FileBaseDir
|
||||
#GraphicsMagick
|
||||
ImageMagick
|
||||
Inline
|
||||
InlineC
|
||||
ParseRecDescent
|
||||
]);
|
||||
|
||||
# use /tmp as a storage
|
||||
# replace GraphicsMagick with ImageMagick, because perl bindings are not yet available
|
||||
postPatch = ''
|
||||
substituteInPlace findimagedupes \
|
||||
--replace "DIRECTORY => '/usr/local/lib/findimagedupes';" "DIRECTORY => '/tmp';" \
|
||||
--replace "Graphics::Magick" "Image::Magick"
|
||||
'';
|
||||
|
||||
buildPhase = "
|
||||
runHook preBuild
|
||||
${perl}/bin/pod2man findimagedupes > findimagedupes.1
|
||||
runHook postBuild
|
||||
";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D -m 755 findimagedupes $out/bin/findimagedupes
|
||||
installManPage findimagedupes.1
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/findimagedupes" \
|
||||
--prefix PERL5LIB : "${with perlPackages; makePerlPath [
|
||||
DBFile
|
||||
FileMimeInfo
|
||||
FileBaseDir
|
||||
#GraphicsMagick
|
||||
ImageMagick
|
||||
Inline
|
||||
InlineC
|
||||
ParseRecDescent
|
||||
]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.jhnc.org/findimagedupes/";
|
||||
description = "Finds visually similar or duplicate images";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ stunkymonkey ];
|
||||
};
|
||||
}
|
|
@ -499,6 +499,7 @@ mapAliases ({
|
|||
ffmpeg-sixel = throw "ffmpeg-sixel has been removed, because it was an outdated/unmaintained fork of ffmpeg"; # Added 2022-03-23";
|
||||
ffmpeg_3 = throw "ffmpeg_3 was removed from nixpkgs, because it was an outdated and insecure release"; # added 2022-01-17
|
||||
filebeat6 = throw "filebeat6 has been removed because it reached end of life"; # Added 2022-10-04
|
||||
findimagedupes = throw "findimagedupes has been removed because the perl bindings are no longer compatible"; # Added 2023-07-10
|
||||
finger_bsd = bsd-finger;
|
||||
fingerd_bsd = bsd-fingerd;
|
||||
firefox-esr-68 = throw "Firefox 68 ESR was removed because it reached end of life with its final release 68.12esr on 2020-08-25";
|
||||
|
|
|
@ -5009,8 +5009,6 @@ with pkgs;
|
|||
|
||||
facedetect = callPackage ../tools/graphics/facedetect { };
|
||||
|
||||
findimagedupes = callPackage ../tools/graphics/findimagedupes { };
|
||||
|
||||
facter = callPackage ../tools/system/facter { };
|
||||
|
||||
faketty = callPackage ../tools/misc/faketty { };
|
||||
|
|
Loading…
Reference in a new issue