Add lz4 to path to ensure the backup helpers can work
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/release Pipeline was successful Details

This commit is contained in:
Olivier 'reivilibre' 2022-06-03 11:42:08 +01:00
parent 25b1e14d84
commit 3637b00f38
1 changed files with 6 additions and 5 deletions

View File

@ -33,7 +33,8 @@
# We want to produce a package with all of these together, with wrappers that let them
# refer to each other by name (i.e. have each other on the path).
# ATM it's just Datman that needs them on the PATH.
# Datman needs the helpers on the path.
# The helpers need lz4 on the path.
allInOne = pkgs.stdenv.mkDerivation {
name = "datman-aio";
@ -45,6 +46,7 @@
ln -s ${rustComponents}/bin/{yama,datman} $out/bin
ln -s ${mysqlHelper}/bin/datman-helper-mysql-{backup,restore} $out/bin
ln -s ${postgresHelper}/bin/datman-helper-postgres-{backup,restore} $out/bin
ln -s ${pkgs.lz4}/bin/lz4 $out/bin/
runHook postInstall
'';
@ -52,10 +54,9 @@
postInstall = ''
# set -eu
#for fn in $out/bin/{datman,yama,datman-helper-{mysql,postgres}-{backup,restore}}; do
# wrapProgram $fn --suffix PATH : $out/bin
#done
wrapProgram $out/bin/datman --suffix PATH : $out/bin
for fn in $out/bin/{datman,yama,datman-helper-{mysql,postgres}-{backup,restore}}; do
wrapProgram $fn --suffix PATH : $out/bin
done
'';
};
in rec {