2019-06-16 19:59:06 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2017-03-01 00:45:06 +00:00
|
|
|
|
2014-10-10 14:58:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-06 13:44:40 +00:00
|
|
|
version = "2.2.6";
|
|
|
|
pname = "discount";
|
2014-10-10 14:58:11 +00:00
|
|
|
|
2019-05-06 13:44:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Orc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1y066jkxfas0vdixbqq66j9p00a102sbfgq5gbrblfczqjrmc38w";
|
2014-10-10 14:58:11 +00:00
|
|
|
};
|
2017-03-01 00:45:06 +00:00
|
|
|
|
2014-10-10 14:58:11 +00:00
|
|
|
patches = ./fix-configure-path.patch;
|
|
|
|
configureScript = "./configure.sh";
|
|
|
|
|
2019-01-20 02:54:16 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-all-features"
|
|
|
|
"--pkg-config"
|
|
|
|
"--shared"
|
|
|
|
"--with-fenced-code"
|
|
|
|
];
|
|
|
|
|
2019-05-06 13:44:40 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2014-10-10 14:58:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Implementation of Markdown markup language in C";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://www.pell.portland.or.us/~orc/Code/discount/;
|
2014-10-10 14:58:11 +00:00
|
|
|
license = licenses.bsd3;
|
2019-12-26 21:28:10 +00:00
|
|
|
maintainers = with maintainers; [ shell ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.unix;
|
2014-10-10 14:58:11 +00:00
|
|
|
};
|
|
|
|
}
|