diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-19 13:46:47 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-19 13:46:47 +0200 |
commit | a47fef4d9e577e6f7526d46f4f4133f2ca16c260 (patch) | |
tree | f3666967abcb75715532fb6689a322ef2e3d01a2 /nixos/modules/programs | |
parent | e197085b4509253316f619e7d751b8c343067e4e (diff) | |
parent | c6256c0e3e4292080b8574a483bdfce4b7d81b5f (diff) | |
download | nixlib-a47fef4d9e577e6f7526d46f4f4133f2ca16c260.tar nixlib-a47fef4d9e577e6f7526d46f4f4133f2ca16c260.tar.gz nixlib-a47fef4d9e577e6f7526d46f4f4133f2ca16c260.tar.bz2 nixlib-a47fef4d9e577e6f7526d46f4f4133f2ca16c260.tar.lz nixlib-a47fef4d9e577e6f7526d46f4f4133f2ca16c260.tar.xz nixlib-a47fef4d9e577e6f7526d46f4f4133f2ca16c260.tar.zst nixlib-a47fef4d9e577e6f7526d46f4f4133f2ca16c260.zip |
Merge pull request #9326 from oxij/fix-info
Documentation indexes
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/info.nix | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/nixos/modules/programs/info.nix b/nixos/modules/programs/info.nix deleted file mode 100644 index 253f9e877693..000000000000 --- a/nixos/modules/programs/info.nix +++ /dev/null @@ -1,38 +0,0 @@ -{config, pkgs, ...}: - -let - - texinfo = pkgs.texinfoInteractive; - - # Quick hack to make the `info' command work properly. `info' needs - # a "dir" file containing all the installed Info files, which we - # don't have (it would be impure to have a package installation - # update some global "dir" file). So this wrapper script around - # "info" builds a temporary "dir" file on the fly. This is a bit - # slow (on a cold cache) but not unacceptably so. - infoWrapper = pkgs.writeScriptBin "info" - '' - #! ${pkgs.stdenv.shell} - - dir=$(mktemp --tmpdir -d "info.dir.XXXXXX") - - if test -z "$dir"; then exit 1; fi - - trap 'rm -rf "$dir"' EXIT - - shopt -s nullglob - - for i in $(IFS=:; echo $INFOPATH); do - for j in $i/*.info; do - ${texinfo}/bin/install-info --quiet $j $dir/dir - done - done - - INFOPATH=$dir:$INFOPATH ${texinfo}/bin/info "$@" - ''; # */ - -in - -{ - environment.systemPackages = [ infoWrapper texinfo ]; -} |