fix: move the fixing of the path to the package and not teh module
This commit is contained in:
parent
f8826c5d2f
commit
b742a09c43
2 changed files with 7 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
|||
stdenv,
|
||||
lib,
|
||||
fetchurl,
|
||||
#, alsa-lib
|
||||
gnused,
|
||||
openssl,
|
||||
zlib,
|
||||
autoPatchelfHook,
|
||||
|
@ -23,6 +23,7 @@ stdenv.mkDerivation rec {
|
|||
# alsaLib
|
||||
openssl
|
||||
zlib
|
||||
gnused
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
@ -30,8 +31,12 @@ stdenv.mkDerivation rec {
|
|||
installPhase = ''
|
||||
runHook preInstall
|
||||
# gets unzipped and we just pop it all into teh output
|
||||
# might add the patching of the path vars in the scripts to be here
|
||||
cp -R ./splunkforwarder $out
|
||||
|
||||
# Splunk is doing a crime by deciding what teh path is, need to comment out this line in /bin/pid_check.sh
|
||||
# PATH=/usr/xpg4/bin:/usr/bin:/bin
|
||||
find $out -type f -name "*.sh" -print0 | xargs -0 sed -i -e 's/PATH=/#PATH=/g'
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue