1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "mhash";
5 version = "0.9.9.9";
6 name = "${pname}-${version}";
7
8 src = fetchurl {
9 url = "mirror://sourceforge/${pname}/${name}.tar.bz2";
10 sha256 = "1w7yiljan8gf1ibiypi6hm3r363imm3sxl1j8hapjdq3m591qljn";
11 };
12
13 dontDisableStatic = true;
14
15 patches = [ ./autotools-define-conflict-debian-fix.patch ];
16
17 meta = {
18 description = "Hash algorithms library";
19 longDescription = ''
20 Libmhash is a library that provides a uniform interface to several hash
21 algorithms. It supports the basics for message authentication by
22 following rfc2104 (HMAC). It also includes some key generation algorithms
23 which are based on hash algorithms.
24 '';
25 homepage = http://mhash.sourceforge.net;
26 license = "LGPL";
27 platforms = stdenv.lib.platforms.unix;
28 };
29}