Add lz4 to path to ensure the backup helpers can work
This commit is contained in:
parent
25b1e14d84
commit
3637b00f38
11
flake.nix
11
flake.nix
@ -33,7 +33,8 @@
|
|||||||
|
|
||||||
# We want to produce a package with all of these together, with wrappers that let them
|
# 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).
|
# 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 {
|
allInOne = pkgs.stdenv.mkDerivation {
|
||||||
name = "datman-aio";
|
name = "datman-aio";
|
||||||
|
|
||||||
@ -45,6 +46,7 @@
|
|||||||
ln -s ${rustComponents}/bin/{yama,datman} $out/bin
|
ln -s ${rustComponents}/bin/{yama,datman} $out/bin
|
||||||
ln -s ${mysqlHelper}/bin/datman-helper-mysql-{backup,restore} $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 ${postgresHelper}/bin/datman-helper-postgres-{backup,restore} $out/bin
|
||||||
|
ln -s ${pkgs.lz4}/bin/lz4 $out/bin/
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -52,10 +54,9 @@
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# set -eu
|
# set -eu
|
||||||
#for fn in $out/bin/{datman,yama,datman-helper-{mysql,postgres}-{backup,restore}}; do
|
for fn in $out/bin/{datman,yama,datman-helper-{mysql,postgres}-{backup,restore}}; do
|
||||||
# wrapProgram $fn --suffix PATH : $out/bin
|
wrapProgram $fn --suffix PATH : $out/bin
|
||||||
#done
|
done
|
||||||
wrapProgram $out/bin/datman --suffix PATH : $out/bin
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in rec {
|
in rec {
|
||||||
|
Loading…
Reference in New Issue
Block a user