Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchgit, cmake, pkg-config }: 2 3stdenv.mkDerivation { 4 pname = "libnl-tiny"; 5 version = "unstable-2022-12-13"; 6 7 src = fetchgit { 8 url = "https://git.openwrt.org/project/libnl-tiny.git"; 9 rev = "f5d9b7e4f534a69cbd35c3f150fa6d57b9d631e4"; 10 sha256 = "0c5ycsdas8rr5c33gd0mnmm515dq631fmdjn5mp2j1m0j1bk7hc0"; 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.all; 27 }; 28}