nixpkgs/pkgs/tools/text/discount/default.nix

34 lines
754 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2014-10-10 14:58:11 +00:00
stdenv.mkDerivation rec {
2020-09-22 20:01:53 +00:00
version = "2.2.7";
pname = "discount";
2014-10-10 14:58:11 +00:00
src = fetchFromGitHub {
owner = "Orc";
repo = pname;
rev = "v${version}";
2020-09-22 20:01:53 +00:00
sha256 = "0p2gznrsvv82zxbajqir8y2ap1ribbgagqg1bzhv3i81p2byhjh7";
2014-10-10 14:58:11 +00:00
};
2014-10-10 14:58:11 +00:00
patches = ./fix-configure-path.patch;
configureScript = "./configure.sh";
configureFlags = [
"--enable-all-features"
"--pkg-config"
"--shared"
"--with-fenced-code"
];
doCheck = true;
meta = with lib; {
2014-10-10 14:58:11 +00:00
description = "Implementation of Markdown markup language in C";
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 ];
platforms = platforms.unix;
2014-10-10 14:58:11 +00:00
};
}