mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Package ifstate
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
d4568a6ead
commit
ff7e1058b3
|
@ -105,6 +105,7 @@
|
||||||
overlays/show-files-to-be-deleted
|
overlays/show-files-to-be-deleted
|
||||||
overlays/rolling_datasets
|
overlays/rolling_datasets
|
||||||
overlays/ledger-compat
|
overlays/ledger-compat
|
||||||
|
overlays/ifstate
|
||||||
|
|
||||||
inputs.uterranix.flakeModule
|
inputs.uterranix.flakeModule
|
||||||
];
|
];
|
||||||
|
@ -210,7 +211,8 @@
|
||||||
tree-sitter-grammars
|
tree-sitter-grammars
|
||||||
udp-over-tcp
|
udp-over-tcp
|
||||||
itp
|
itp
|
||||||
rolling_datasets;
|
rolling_datasets
|
||||||
|
ifstate;
|
||||||
# ds3os;
|
# ds3os;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
7
overlays/ifstate/default.nix
Normal file
7
overlays/ifstate/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{inputs, ...}: {
|
||||||
|
flake.overlays.ifstate = final: prev: {
|
||||||
|
ifstate = final.python3.pkgs.callPackage ./ifstate.nix {
|
||||||
|
wgnlpy = final.python3.pkgs.callPackage ./wgnlpy.nix {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
48
overlays/ifstate/ifstate.nix
Normal file
48
overlays/ifstate/ifstate.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{
|
||||||
|
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=";
|
||||||
|
};
|
||||||
|
}
|
26
overlays/ifstate/wgnlpy.nix
Normal file
26
overlays/ifstate/wgnlpy.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
fetchFromGitHub,
|
||||||
|
buildPythonPackage,
|
||||||
|
pyroute2,
|
||||||
|
cryptography,
|
||||||
|
}: let
|
||||||
|
version = "0.1.5";
|
||||||
|
in
|
||||||
|
buildPythonPackage {
|
||||||
|
pname = "wgnpy";
|
||||||
|
version = "v" + version;
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pyroute2
|
||||||
|
cryptography
|
||||||
|
];
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ArgosyLabs";
|
||||||
|
repo = "wgnlpy";
|
||||||
|
rev = "2dc844a48651d6b62d03fd2916e829bf56929c18";
|
||||||
|
hash = "sha256-5XAfBiKx4SqouA57PxmaCb0ea7mT2VeUI1tgnQE/ZwQ=";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue