2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2017-03-01 00:45:06 +00:00
|
|
|
|
2014-10-10 15:58:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-09-22 21:01:53 +01:00
|
|
|
version = "2.2.7";
|
2019-05-06 14:44:40 +01:00
|
|
|
pname = "discount";
|
2014-10-10 15:58:11 +01:00
|
|
|
|
2019-05-06 14:44:40 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Orc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-09-22 21:01:53 +01:00
|
|
|
sha256 = "0p2gznrsvv82zxbajqir8y2ap1ribbgagqg1bzhv3i81p2byhjh7";
|
2014-10-10 15:58:11 +01:00
|
|
|
};
|
2017-03-01 00:45:06 +00:00
|
|
|
|
2014-10-10 15:58:11 +01: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 14:44:40 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-10-10 15:58:11 +01:00
|
|
|
description = "Implementation of Markdown markup language in C";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.pell.portland.or.us/~orc/Code/discount/";
|
2014-10-10 15:58:11 +01:00
|
|
|
license = licenses.bsd3;
|
2019-12-26 21:28:10 +00:00
|
|
|
maintainers = with maintainers; [ shell ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.unix;
|
2014-10-10 15:58:11 +01:00
|
|
|
};
|
|
|
|
}
|