infnoise: Also build and install tools

This commit is contained in:
Zhaofeng Li 2022-05-06 00:22:46 -07:00
parent 31cb3f9908
commit d7432b815d

View file

@ -36,6 +36,12 @@ stdenv.mkDerivation rec {
substituteInPlace init_scripts/infnoise.service --replace "/usr/local" "$out"
'';
postInstall = ''
make -C tools
find ./tools/ -executable -type f -exec \
sh -c "install -Dm755 {} $out/bin/infnoise-\$(basename {})" \;
'';
passthru = {
tests.version = testers.testVersion { package = infnoise; };
};