mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-01 20:46:12 +01:00
7a3eb83855
Signed-off-by: magic_rb <magic_rb@redalder.org>
55 lines
976 B
Nix
55 lines
976 B
Nix
{
|
|
lib,
|
|
fetchFromGitea,
|
|
buildPythonApplication,
|
|
jsonschema,
|
|
pyroute2,
|
|
pyyaml,
|
|
setproctitle,
|
|
libbpf,
|
|
withShell ? true,
|
|
pygments,
|
|
withWireguard ? true,
|
|
wgnlpy,
|
|
}: let
|
|
inherit
|
|
(lib)
|
|
optional
|
|
licenses
|
|
;
|
|
version = "1.11.4";
|
|
in
|
|
buildPythonApplication {
|
|
pname = "ifstate";
|
|
inherit version;
|
|
|
|
# preCheck = ''
|
|
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${libbpf}/lib
|
|
# '';
|
|
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs =
|
|
[
|
|
jsonschema
|
|
pyroute2
|
|
pyyaml
|
|
setproctitle
|
|
]
|
|
++ (optional withShell pygments)
|
|
++ (optional withWireguard wgnlpy);
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "liske";
|
|
repo = "ifstate";
|
|
rev = "faf32e8d1b0c9d2fd565976b8cc67d9563551254";
|
|
hash = "sha256-16AGyGEbBGVNNlMS2tVu+dmpEkP7aCDwA+//2nMvaqU=";
|
|
};
|
|
|
|
meta = {
|
|
license = licenses.gpl3;
|
|
mainProgram = "ifstatecli";
|
|
};
|
|
}
|