summary refs log tree commit diff
path: root/pkgs/development/libraries/libmd/default.nix
blob: 2da8e5ebf738b66f1fbf5c7b645c086e3eb4b758 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, autoreconfHook }:

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  pname = "libmd";
  version = "1.0.0";

  src = fetchurl {
    url = "https://archive.hadrons.org/software/${pname}/${pname}-${version}.tar.xz";
    sha256 = "1iv45npzv0gncjgcpx5m081861zdqxw667ysghqb8721yrlyl6pj";
  };

  nativeBuildInputs = [ autoreconfHook ];

  # Writing the version to a .dist-version file is required for the get-version
  # shell script because fetchgit removes the .git directory.
  prePatch = ''
    echo '${version}' > .dist-version;
  '';

  meta = with stdenv.lib; {
    homepage = "https://www.hadrons.org/software/${pname}/";
    description = "Message Digest functions from BSD systems";
    license = with licenses; [ bsd3 bsd2 isc beerware publicDomain ];
    maintainers = with maintainers; [ primeos ];
    platforms = platforms.linux;
  };
}