diff options
author | volth <volth@volth.com> | 2017-12-22 21:58:39 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2017-12-22 22:00:02 +0000 |
commit | 13ad4c09a32eb855fd389f20e0b31fae4318de32 (patch) | |
tree | c0904108bb6a546fab63bc8a451c083920867aaa /pkgs/applications/networking/cluster/hadoop | |
parent | 74588bf88adc304a49144874077d718202415408 (diff) |
hadoop: avoid using wrapProgram
Script renaming may result to weird things: http://i.imgur.com/0Xee013.png#
Diffstat (limited to 'pkgs/applications/networking/cluster/hadoop')
-rw-r--r-- | pkgs/applications/networking/cluster/hadoop/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/hadoop/default.nix b/pkgs/applications/networking/cluster/hadoop/default.nix index f96ee42fb1c1..8c8e258ccd10 100644 --- a/pkgs/applications/networking/cluster/hadoop/default.nix +++ b/pkgs/applications/networking/cluster/hadoop/default.nix @@ -72,13 +72,18 @@ let nativeBuildInputs = [ makeWrapper ]; installPhase = '' - mkdir -p $out/share/doc/hadoop/ + mkdir -p $out/share/doc/hadoop cp -dpR * $out/ mv $out/*.txt $out/share/doc/hadoop/ + # + # Do not use `wrapProgram` here, script renaming may result to weird things: http://i.imgur.com/0Xee013.png + # + mkdir -p $out/bin.wrapped for n in $out/bin/*; do if [ -f "$n" ]; then # only regular files - wrapProgram "$n" \ + mv $n $out/bin.wrapped/ + makeWrapper $out/bin.wrapped/$(basename $n) $n \ --prefix PATH : "${stdenv.lib.makeBinPath [ which jre bash coreutils ]}" \ --prefix JAVA_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ openssl snappy zlib bzip2 ]}" \ --set JAVA_HOME "${jre}" \ |