diff options
author | Aneesh Agrawal <aneeshusa@gmail.com> | 2016-09-26 11:36:27 -0400 |
---|---|---|
committer | Aneesh Agrawal <aneeshusa@gmail.com> | 2016-09-26 11:36:27 -0400 |
commit | 777a6cafd94bde45d327e2024b29250a66978bde (patch) | |
tree | c14014e8d971c450ddb2c1eee4ab99518816f3e2 /pkgs/tools/typesetting/asciidoc | |
parent | ff980cc5533238ca42b5d8897ffae869e325ee0e (diff) | |
download | nixpkgs-777a6cafd94bde45d327e2024b29250a66978bde.tar nixpkgs-777a6cafd94bde45d327e2024b29250a66978bde.tar.gz nixpkgs-777a6cafd94bde45d327e2024b29250a66978bde.tar.bz2 nixpkgs-777a6cafd94bde45d327e2024b29250a66978bde.tar.lz nixpkgs-777a6cafd94bde45d327e2024b29250a66978bde.tar.xz nixpkgs-777a6cafd94bde45d327e2024b29250a66978bde.tar.zst nixpkgs-777a6cafd94bde45d327e2024b29250a66978bde.zip |
asciidoc: Pin to Python 2
Diffstat (limited to 'pkgs/tools/typesetting/asciidoc')
-rw-r--r-- | pkgs/tools/typesetting/asciidoc/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/typesetting/asciidoc/default.nix b/pkgs/tools/typesetting/asciidoc/default.nix index 59059c632b9..89ed36231a2 100644 --- a/pkgs/tools/typesetting/asciidoc/default.nix +++ b/pkgs/tools/typesetting/asciidoc/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, python +{ fetchurl, stdenv, python2 , enableStandardFeatures ? false , sourceHighlight ? null @@ -148,7 +148,7 @@ stdenv.mkDerivation rec { sha256 = "1w71nk527lq504njmaf0vzr93pgahkgzzxzglrq6bay8cw2rvnvq"; }; - buildInputs = [ python unzip ]; + buildInputs = [ python2 unzip ]; # install filters early, so their shebangs are patched too patchPhase = with stdenv.lib; '' @@ -247,7 +247,7 @@ stdenv.mkDerivation rec { -i a2x.py '' + '' for n in $(find "$out" . -name \*.py); do - sed -i -e "s,^#![[:space:]]*.*/bin/env python,#!${python}/bin/python,g" "$n" + sed -i -e "s,^#![[:space:]]*.*/bin/env python,#!${python2}/bin/python,g" "$n" chmod +x "$n" done |