1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:26:02 +00:00
nixpkgs/pkgs/development/libraries/libmd/default.nix

29 lines
876 B
Nix
Raw Normal View History

2016-12-29 20:04:29 +00:00
{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "libmd";
2018-02-24 11:56:03 +00:00
version = "1.0.0";
2016-12-29 20:04:29 +00:00
src = fetchurl {
url = "https://archive.hadrons.org/software/${pname}/${pname}-${version}.tar.xz";
2018-02-24 11:56:03 +00:00
sha256 = "1iv45npzv0gncjgcpx5m081861zdqxw667ysghqb8721yrlyl6pj";
2016-12-29 20:04:29 +00:00
};
2017-01-21 19:42:41 +00:00
nativeBuildInputs = [ autoreconfHook ];
2016-12-29 20:04:29 +00: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;
};
}