usteer: init at unstable-04-09-2024

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
Raito Bezarius 2024-09-04 15:58:27 +02:00 committed by sinavir
parent 31d31260b8
commit be143d1a13
No known key found for this signature in database
2 changed files with 42 additions and 0 deletions

View file

@ -113,6 +113,7 @@ in {
libubox = callPackage ./libubox {};
ubus = callPackage ./ubus {};
iwinfo = callPackage ./iwinfo {};
usteer = callPackage ./usteer {};
uevent-watch = callPackage ./uevent-watch {};
usb-modeswitch = callPackage ./usb-modeswitch {};
writeAshScript = callPackage ./write-ash-script {};

41
pkgs/usteer/default.nix Normal file
View file

@ -0,0 +1,41 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
json_c,
libpcap,
libubox,
ubus,
}:
stdenv.mkDerivation {
pname = "usteer";
version = "unstable-04-09-2024";
src = fetchFromGitHub {
owner = "openwrt";
repo = "usteer";
rev = "e218150979b40a1b3c59ad0aaa3bbb943814db1e";
hash = "sha256-shbN5Wp7m/olr0OcckcPk11yXnJxpnllXqi/bw+X7gM=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "/usr" "${placeholder "out"}"
'';
nativeBuildInputs = [
cmake
];
buildInputs = [ ubus libpcap libubox json_c ];
meta = {
description = "";
homepage = "https://github.com/openwrt/usteer";
maintainers = with lib.maintainers; [ raitobezarius ];
mainProgram = "usteer";
platforms = lib.platforms.all;
};
}