1{ lib, stdenv, fetchzip, libtool, ghostscript, groff, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 pname = "fstrcmp";
5 version = "0.7";
6
7 src = fetchzip {
8 url = "https://sourceforge.net/projects/fstrcmp/files/fstrcmp/${version}/fstrcmp-${version}.D001.tar.gz";
9 sha256 = "0yg3y3k0wz50gmhgigfi2dx725w1gc8snb95ih7vpcnj6kabgz9a";
10 };
11
12 patches = [ ./cross.patch ];
13
14 outputs = [ "out" "dev" "doc" "man" "devman" ];
15
16 nativeBuildInputs = [ libtool ghostscript groff autoreconfHook ];
17
18 enableParallelBuilding = true;
19
20 meta = with lib; {
21 description = "Make fuzzy comparisons of strings and byte arrays";
22 mainProgram = "fstrcmp";
23 longDescription = ''
24 The fstrcmp project provides a library that is used to make fuzzy
25 comparisons of strings and byte arrays, including multi-byte character
26 strings.
27 '';
28 homepage = "https://fstrcmp.sourceforge.net/";
29 downloadPage = "https://sourceforge.net/projects/fstrcmp/";
30 license = licenses.gpl3;
31 maintainers = [ maintainers.sephalon ];
32 platforms = platforms.unix;
33 };
34}