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 longDescription = ''
23 The fstrcmp project provides a library that is used to make fuzzy
24 comparisons of strings and byte arrays, including multi-byte character
25 strings.
26 '';
27 homepage = "https://fstrcmp.sourceforge.net/";
28 downloadPage = "https://sourceforge.net/projects/fstrcmp/";
29 license = licenses.gpl3;
30 maintainers = [ maintainers.sephalon ];
31 platforms = platforms.unix;
32 };
33}