libmd: 1.0.4 -> 1.1.0

The symbol alias macros now support macOS, so the patch can be dropped.
This commit is contained in:
Emily 2023-08-03 23:57:13 +01:00
parent f01288ec4e
commit c3bd98051b

View File

@ -1,35 +1,28 @@
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "libmd";
version = "1.0.4";
version = "1.1.0";
src = fetchurl {
urls = [
"https://archive.hadrons.org/software/libmd/libmd-${version}.tar.xz"
"https://libbsd.freedesktop.org/releases/libmd-${version}.tar.xz"
"https://archive.hadrons.org/software/libmd/libmd-${finalAttrs.version}.tar.xz"
"https://libbsd.freedesktop.org/releases/libmd-${finalAttrs.version}.tar.xz"
];
sha256 = "sha256-9RySEELjS+3e3tS3VVdlZVnPWx8kSAM7TB7sEcB+Uw8=";
sha256 = "sha256-G9aqQidTE68xQcfPLluWTosf1IgCXK8vlx9DsAd2szI=";
};
patches = [
# Drop aliases for SHA384 functions, because such aliases are not supported on Darwin.
(fetchpatch {
url = "https://github.com/macports/macports-ports/raw/8332f5dbcaf05a02bc31fbd4ccf735e7d5c9a5b0/devel/libmd/files/patch-symbol-alias.diff";
sha256 = "sha256-py5hMpKYKwtBzhWn01lFc2a6+OZN72YCYXyhg1qe6rg=";
extraPrefix = "";
})
];
enableParallelBuilding = true;
nativeBuildInputs = [ autoreconfHook ];
meta = with lib; {
homepage = "https://www.hadrons.org/software/${pname}/";
changelog = "https://archive.hadrons.org/software/libmd/libmd-${version}.announce";
homepage = "https://www.hadrons.org/software/libmd/";
changelog = "https://archive.hadrons.org/software/libmd/libmd-${finalAttrs.version}.announce";
# Git: https://git.hadrons.org/cgit/libmd.git
description = "Message Digest functions from BSD systems";
license = with licenses; [ bsd3 bsd2 isc beerware publicDomain ];
maintainers = with maintainers; [ primeos ];
platforms = platforms.unix;
};
}
})