Commit 82c1f488 authored by Eric Bailey's avatar Eric Bailey Committed by Eric Bailey
Browse files

noweb: 2.12 -> 2.13

parent 9a17fe4f
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, nawk, groff, icon-lang, useIcon ? true }:

stdenv.mkDerivation (finalAttrs: rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "noweb";
  version = "2.12";
  version = "2.13";

  src = fetchFromGitHub {
    owner = "nrnrnr";
    repo = "noweb";
    rev = "v${builtins.replaceStrings ["."] ["_"] version}";
    sha256 = "1160i2ghgzqvnb44kgwd6s3p4jnk9668rmc15jlcwl7pdf3xqm95";
    rev = "v${builtins.replaceStrings ["."] ["_"] finalAttrs.version}";
    sha256 = "sha256-COcWyrYkheRaSr2gqreRRsz9SYRTX2PSl7km+g98ljs=";
  };

  sourceRoot = "${src.name}/src";
  sourceRoot = "${finalAttrs.src.name}/src";

  patches = [
    # Remove FAQ
@@ -20,6 +20,7 @@ stdenv.mkDerivation (finalAttrs: rec {

  postPatch = ''
    substituteInPlace Makefile --replace 'strip' '${stdenv.cc.targetPrefix}strip'
    substituteInPlace Makefile --replace '`./gitversion`' '${finalAttrs.src.rev}'
  '';

  nativeBuildInputs = [ groff ] ++ lib.optionals useIcon [ icon-lang ];
+9 −7
Original line number Diff line number Diff line
--- a/Makefile	2006-06-12 22:14:20.000000000 +0200
+++ b/Makefile	2010-06-17 11:30:11.804018145 +0200
@@ -198,7 +198,7 @@
 	(cd elisp; ci -l $(CINAME) $(CIMSG) *.el)
 	ci -l $(CINAME) $(CIMSG) Makefile.nw INSTALL INSTALL.DOS README FAQ COPYRIGHT nwmake *.nw
diff --git a/Makefile b/Makefile
index 1897c09..770e108 100644
--- a/Makefile
+++ b/Makefile
@@ -195,7 +195,7 @@ install-elisp:
 
 uninstall-elisp:
 	rm -f $(ELISP)/noweb-mode.el
-source: FAQ
+source:
 	for i in c shell lib xdoc icon awk tex; do (cd $$i; make CPIF=">" source); done
 	for i in c shell lib xdoc icon awk tex; do (cd $$i && $(MAKE) CPIF=">" $@); done
 	sleep 1
 	for i in c shell lib xdoc icon awk tex; do (cd $$i; make touch); done
 	for i in c shell lib xdoc icon awk tex; do (cd $$i && $(MAKE) touch); done