Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asciidoc: set revdate #111572

Merged
merged 2 commits into from Feb 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 11 additions & 1 deletion pkgs/tools/typesetting/asciidoc/default.nix
Expand Up @@ -147,6 +147,8 @@ stdenv.mkDerivation rec {
pname = "asciidoc";
version = "9.0.4";

# Note: a substitution to improve reproducibility should be updated once 10.0.0 is
# released. See the comment in `patchPhase` for more information.
src = fetchFromGitHub {
owner = "asciidoc";
repo = "asciidoc-py3";
Expand Down Expand Up @@ -261,7 +263,15 @@ stdenv.mkDerivation rec {
'') + ''
patchShebangs .

sed -i -e "s,/etc/vim,,g" Makefile.in
# Note: this substitution will not work in the planned 10.0.0 release:
#
# https://github.com/asciidoc/asciidoc-py3/commit/dfffda23381014481cd13e8e9d8f131e1f93f08a
#
# Update this substitution to:
#
# --replace "python3 -m asciidoc.a2x" "python3 -m asciidoc.a2x -a revdate=01/01/1980"
substituteInPlace Makefile.in \
--replace "python3 a2x.py" "python3 a2x.py -a revdate=01/01/1980"
'';

preInstall = "mkdir -p $out/etc/vim";
Expand Down