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

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

44 lines
1.1 KiB
Nix
Raw Normal View History

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