forked from DGNum/liminix
t #2
2 changed files with 60 additions and 0 deletions
|
@ -112,6 +112,7 @@ in {
|
||||||
tufted = callPackage ./tufted {};
|
tufted = callPackage ./tufted {};
|
||||||
libubox = callPackage ./libubox {};
|
libubox = callPackage ./libubox {};
|
||||||
ubus = callPackage ./ubus {};
|
ubus = callPackage ./ubus {};
|
||||||
|
iwinfo = callPackage ./iwinfo {};
|
||||||
uevent-watch = callPackage ./uevent-watch {};
|
uevent-watch = callPackage ./uevent-watch {};
|
||||||
usb-modeswitch = callPackage ./usb-modeswitch {};
|
usb-modeswitch = callPackage ./usb-modeswitch {};
|
||||||
writeAshScript = callPackage ./write-ash-script {};
|
writeAshScript = callPackage ./write-ash-script {};
|
||||||
|
|
59
pkgs/iwinfo/default.nix
Normal file
59
pkgs/iwinfo/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitea,
|
||||||
|
ubus,
|
||||||
|
libubox,
|
||||||
|
lua5_1,
|
||||||
|
libnl-tiny,
|
||||||
|
backend ? "nl80211"
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
lua = lua5_1;
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "iwinfo";
|
||||||
|
version = "unstable-07-09-2024";
|
||||||
|
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "git.dgnum.eu";
|
||||||
|
owner = "DGNum";
|
||||||
|
repo = "iwinfo";
|
||||||
|
rev = "aaa40cc77a42683df3c32d1f693e9ab95f910f2a";
|
||||||
|
hash = "sha256-ojBj0dbDgtnloe1MILIjYVPX3PVZeUbYnEdqeg6/4OM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
BACKENDS = backend;
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
ubus
|
||||||
|
libubox
|
||||||
|
lua
|
||||||
|
libnl-tiny
|
||||||
|
];
|
||||||
|
|
||||||
|
CFLAGS = "-I${libnl-tiny}/include/libnl-tiny -D_GNU_SOURCE";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm755 iwinfo $out/bin/iwinfo
|
||||||
|
install -Dm755 iwinfo.so $out/lib/lua/${lua.luaversion}/iwinfo.so
|
||||||
|
install -Dm755 libiwinfo.so $out/lib/libiwinfo.so
|
||||||
|
install -Dm755 libiwinfo.so.0 $out/lib/libiwinfo.so.0
|
||||||
|
|
||||||
|
mkdir -p $out/include
|
||||||
|
cp -r include/* $out/include
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Library to access wireless devices";
|
||||||
|
homepage = "https://github.com/openwrt/iwinfo";
|
||||||
|
license = lib.licenses.gpl2Only;
|
||||||
|
maintainers = with lib.maintainers; [ raitobezarius ];
|
||||||
|
mainProgram = "iwinfo";
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue