1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-fFSlW9qnH3NL9civ793LrScOJSuRe9i377BgpNzOXa0=";
14 patches = [ ./fix-configure-path.patch ];
15 configureScript = "./configure.sh";
18 "--debian-glitch" # use deterministic mangling
23 enableParallelBuilding = true;
24 installTargets = [ "install.everything" ];
28 postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
29 install_name_tool -id "$out/lib/libmarkdown.dylib" "$out/lib/libmarkdown.dylib"
30 for exe in $out/bin/*; do
31 install_name_tool -change libmarkdown.dylib "$out/lib/libmarkdown.dylib" "$exe"
36 description = "Implementation of Markdown markup language in C";
37 homepage = "http://www.pell.portland.or.us/~orc/Code/discount/";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ shell ];
40 mainProgram = "markdown";
41 platforms = platforms.unix;