nixpkgs/pkgs/development/libraries/libmd/default.nix

28 lines
844 B
Nix
Raw Normal View History

2016-12-29 21:04:29 +01:00
{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "libmd";
2018-10-22 18:06:21 +02:00
version = "1.0.1";
2016-12-29 21:04:29 +01:00
src = fetchurl {
url = "https://archive.hadrons.org/software/${pname}/${pname}-${version}.tar.xz";
2018-10-22 18:06:21 +02:00
sha256 = "0waclg2d5qin3r26gy5jvy4584ik60njc8pqbzwk0lzq3j9ynkp1";
2016-12-29 21:04:29 +01:00
};
2017-01-21 20:42:41 +01:00
nativeBuildInputs = [ autoreconfHook ];
2016-12-29 21:04:29 +01:00
# 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;
};
}