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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1020 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2014-10-10 14:58:11 +00:00
stdenv.mkDerivation rec {
version = "2.2.7b";
pname = "discount";
2014-10-10 14:58:11 +00:00
src = fetchFromGitHub {
owner = "Orc";
repo = pname;
rev = "v${version}";
sha256 = "sha256-S6OVKYulhvEPRqNXBsvZ7m2W4cbdnrpZKPAo3SfD+9s=";
2014-10-10 14:58:11 +00:00
};
patches = [ ./fix-configure-path.patch ];
2014-10-10 14:58:11 +00:00
configureScript = "./configure.sh";
configureFlags = [
"--shared"
"--debian-glitch" # use deterministic mangling
"--pkg-config"
"--h1-title"
];
2021-10-21 17:28:24 +00:00
enableParallelBuilding = true;
installTargets = [ "install.everything" ];
doCheck = true;
2022-01-18 15:24:31 +00:00
postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libmarkdown.dylib $out/lib/libmarkdown.dylib
'';
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 ];
mainProgram = "markdown";
platforms = platforms.unix;
2014-10-10 14:58:11 +00:00
};
}