1{ stdenv, lib, fetchgit, cmake, pkg-config }:
2
3stdenv.mkDerivation {
4 pname = "libnl-tiny";
5 version = "unstable-2023-12-05";
6
7 src = fetchgit {
8 url = "https://git.openwrt.org/project/libnl-tiny.git";
9 rev = "965c4bf49658342ced0bd6e7cb069571b4a1ddff";
10 hash = "sha256-kegTV7FXMERW7vjRZo/Xp4cbSBZmynBgge2lK71Fx94=";
11 };
12
13 nativeBuildInputs = [ cmake pkg-config ];
14
15 preConfigure = ''
16 sed -e 's|''${prefix}/@CMAKE_INSTALL_LIBDIR@|@CMAKE_INSTALL_FULL_LIBDIR@|g' \
17 -e 's|''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@|@CMAKE_INSTALL_FULL_INCLUDEDIR@|g' \
18 -i libnl-tiny.pc.in
19 '';
20
21 meta = with lib; {
22 description = "Tiny OpenWrt fork of libnl";
23 homepage = "https://git.openwrt.org/?p=project/libnl-tiny.git;a=summary";
24 license = licenses.isc;
25 maintainers = with maintainers; [ mkg20001 ];
26 platforms = platforms.linux;
27 };
28}