2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.2.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "discount";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Orc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "0p2gznrsvv82zxbajqir8y2ap1ribbgagqg1bzhv3i81p2byhjh7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
patches = [
|
|
|
|
./fix-configure-path.patch
|
|
|
|
|
|
|
|
# Fix parallel make depends:
|
|
|
|
# - https://github.com/Orc/discount/commit/e42188e6c4c30d9de668cf98d98dd0c13ecce7cf.patch
|
|
|
|
# - https://github.com/Orc/discount/pull/245
|
|
|
|
./parallel-make.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
configureScript = "./configure.sh";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-all-features"
|
|
|
|
"--pkg-config"
|
|
|
|
"--shared"
|
|
|
|
"--with-fenced-code"
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Implementation of Markdown markup language in C";
|
|
|
|
homepage = "http://www.pell.portland.or.us/~orc/Code/discount/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ shell ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|