mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
discount: 2.2.7 -> 2.2.7b
Also install man pages and sample programs
This commit is contained in:
parent
1d7db1b9e4
commit
7d85b91eba
@ -1,36 +1,28 @@
|
||||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.2.7";
|
||||
version = "2.2.7b";
|
||||
pname = "discount";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Orc";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0p2gznrsvv82zxbajqir8y2ap1ribbgagqg1bzhv3i81p2byhjh7";
|
||||
sha256 = "sha256-S6OVKYulhvEPRqNXBsvZ7m2W4cbdnrpZKPAo3SfD+9s=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./fix-configure-path.patch
|
||||
|
||||
# Fix parallel make depends:
|
||||
# - https://github.com/Orc/discount/commit/e42188e6c4c30d9de668cf98d98dd0c13ecce7cf.patch
|
||||
# - https://github.com/Orc/discount/pull/245
|
||||
./parallel-make.patch
|
||||
];
|
||||
patches = [ ./fix-configure-path.patch ];
|
||||
configureScript = "./configure.sh";
|
||||
|
||||
configureFlags = [
|
||||
"--enable-all-features"
|
||||
"--pkg-config"
|
||||
"--shared"
|
||||
"--with-fenced-code"
|
||||
# Use deterministic mangling
|
||||
"--debian-glitch"
|
||||
"--debian-glitch" # use deterministic mangling
|
||||
"--pkg-config"
|
||||
"--h1-title"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
installTargets = [ "install.everything" ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postFixup = lib.optionalString stdenv.isDarwin ''
|
||||
|
@ -1,15 +0,0 @@
|
||||
https://github.com/Orc/discount/pull/245
|
||||
https://github.com/Orc/discount/commit/e42188e6c4c30d9de668cf98d98dd0c13ecce7cf.patch
|
||||
|
||||
Fix parallel make failure: add missing pandoc_headers dependency.
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -139,7 +139,7 @@ test: $(PGMS) $(TESTFRAMEWORK) verify
|
||||
|
||||
pandoc_headers.o: tools/pandoc_headers.c config.h
|
||||
$(BUILD) -c -o pandoc_headers.o tools/pandoc_headers.c
|
||||
-pandoc_headers: pandoc_headers.o
|
||||
+pandoc_headers: pandoc_headers.o $(COMMON) $(MKDLIB)
|
||||
$(LINK) -o pandoc_headers pandoc_headers.o $(COMMON) -lmarkdown
|
||||
|
||||
branch.o: tools/branch.c config.h
|
Loading…
Reference in New Issue
Block a user