3
0
Fork 0
forked from mirrors/nixpkgs

AsciiDoc: Fix `CONF_DIR' in the executables.

svn path=/nixpkgs/trunk/; revision=11056
This commit is contained in:
Ludovic Courtès 2008-03-11 14:06:52 +00:00
parent 3d2fe2382f
commit 498f57b9a8
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, python }:
{ fetchurl, stdenv, python, bash }:
stdenv.mkDerivation rec {
name = "asciidoc-8.2.5";
@ -9,10 +9,12 @@ stdenv.mkDerivation rec {
patchPhase = ''
cat "asciidoc.py" | \
sed -e 's,^#!/usr/bin/env python,#!${python}/bin/python,g' \
sed -e "s,^#!/usr/bin/env python,#!${python}/bin/python,g ;
s,^CONF_DIR = .*$,CONF_DIR = \"$out/etc/asciidoc\",g" \
> ,,tmp && mv ,,tmp asciidoc.py && chmod +x asciidoc.py
cat "a2x" | \
sed -e 's,^#!/usr/bin/env bash,#!${stdenv.shell},g' \
sed -e "s,^#!/usr/bin/env bash,#!${bash},g ;
s,^CONF_DIR=.*$,CONF_DIR=\"$out/etc/asciidoc\",g" \
> ,,tmp && mv ,,tmp a2x && chmod +x a2x
cat "install.sh" | \

View file

@ -417,7 +417,7 @@ rec {
};
asciidoc = import ../tools/typesetting/asciidoc {
inherit fetchurl stdenv python;
inherit fetchurl stdenv bash python;
};
bibtextools = import ../tools/typesetting/bibtex-tools {