synit-daemons: init at unstable-2022-07-25
This commit is contained in:
parent
6e31bf0b23
commit
7ff5564d67
|
@ -29,6 +29,8 @@
|
|||
overrides = final': prev': {
|
||||
preserves = final'.callPackage ./packages/preserves-py { };
|
||||
syndicate = final'.callPackage ./packages/syndicate-py { };
|
||||
|
||||
synit-daemons = final'.callPackage ./packages/synit-daemons { };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, buildPythonApplication, python, pyroute2, syndicate, synit-pid1 }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "interface-monitor";
|
||||
inherit (synit-pid1) version src;
|
||||
|
||||
propagatedBuildInputs = [ pyroute2 syndicate ];
|
||||
|
||||
format = "other";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p \
|
||||
$out/bin \
|
||||
$out/lib/${python.libPrefix}/site-packages/synit/daemon \
|
||||
$out/protocols \
|
||||
|
||||
cp -r protocols/schema-bundle.bin $out/protocols
|
||||
pushd packaging/packages/synit-config/files/usr/lib/synit
|
||||
for f in *; do
|
||||
[ -f $f ] && cp $f $out/bin
|
||||
done
|
||||
pushd python/synit/daemon
|
||||
for f in *; do
|
||||
substitute $f $out/lib/${python.libPrefix}/site-packages/synit/daemon/$f \
|
||||
--replace "/home/tonyg/src/synit/protocols" "$out/protocols"
|
||||
done
|
||||
popd
|
||||
popd
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
}
|
Loading…
Reference in New Issue