mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
49 lines
842 B
Nix
49 lines
842 B
Nix
|
{
|
||
|
lib,
|
||
|
fetchFromGitea,
|
||
|
buildPythonApplication,
|
||
|
jsonschema,
|
||
|
pyroute2,
|
||
|
pyyaml,
|
||
|
setproctitle,
|
||
|
libbpf,
|
||
|
withShell ? true,
|
||
|
pygments,
|
||
|
withWireguard ? true,
|
||
|
wgnlpy,
|
||
|
}: let
|
||
|
inherit
|
||
|
(lib)
|
||
|
optional
|
||
|
;
|
||
|
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 = version;
|
||
|
hash = "sha256-7FgvLsY9cm6+mZ8nfADdECeLXUJFYCTLoUCUEYKjsA8=";
|
||
|
};
|
||
|
}
|