@@ -0,0 +1,30 @@
1+{ stdenv, fetchurl, autoreconfHook }:
2+
3+stdenv.mkDerivation rec {
4+ name = "${pname}-${version}";
5+ pname = "libmd";
6+ version = "0.0.0";
7+
8+ src = fetchurl {
9+ url = "https://archive.hadrons.org/software/${pname}/${pname}-${version}.tar.xz";
10+ sha256 = "121s73pgbqsnmy6xblbrkj9y44c5zzzpf2hcmh6zvcvg4dk26gzx";
11+ };
12+
13+ buildInputs = [ autoreconfHook ];
14+
15+ # Writing the version to a .dist-version file is required for the get-version
16+ # shell script because fetchgit removes the .git directory.
17+ prePatch = ''
18+ echo '${version}' > .dist-version;
19+ '';
20+
21+ autoreconfPhase = "./autogen";
22+
23+ meta = with stdenv.lib; {
24+ homepage = "https://www.hadrons.org/software/${pname}/";
25+ description = "Message Digest functions from BSD systems";
26+ license = with licenses; [ bsd3 bsd2 isc beerware publicDomain ];
27+ maintainers = with maintainers; [ primeos ];
28+ platforms = platforms.linux;
29+ };
30+}