netns-exec: add c program to execute commands in netns
c program allows executing commands in nb-bitcoind, nb-lnd, nb-liquidd (the netns's needed for operator cli scripts).
This commit is contained in:
11
pkgs/netns-exec/default.nix
Normal file
11
pkgs/netns-exec/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ stdenv, pkgs }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "netns-exec";
|
||||
buildInputs = [ pkgs.libcap ];
|
||||
src = ./src;
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp main $out/netns-exec
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user