nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchgit, 5 cmake, 6 pkg-config, 7 libubox, 8 ucode, 9 json_c, 10}: 11 12stdenv.mkDerivation { 13 pname = "uclient"; 14 version = "unstable-2025-10-03"; 15 16 src = fetchgit { 17 url = "https://git.openwrt.org/project/uclient.git"; 18 rev = "dc909ca71bc884c0e5362e1d7cc7808696cb2add"; 19 hash = "sha256-jrhLBB3Mb7FvxMtKxG7e7D/hcyygTjx868POGtF+Dcc="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 pkg-config 25 ]; 26 buildInputs = [ 27 libubox 28 ucode 29 json_c 30 ]; 31 32 preConfigure = '' 33 sed -e 's|ubox_include_dir libubox/ustream-ssl.h|ubox_include_dir libubox/ustream-ssl.h HINTS ${libubox}/include|g' \ 34 -e 's|ubox_library NAMES ubox|ubox_library NAMES ubox HINTS ${libubox}/lib|g' \ 35 -i CMakeLists.txt 36 ''; 37 38 meta = { 39 description = "Tiny OpenWrt fork of libnl"; 40 homepage = "https://git.openwrt.org/?p=project/uclient.git;a=summary"; 41 license = lib.licenses.isc; 42 maintainers = with lib.maintainers; [ mkg20001 ]; 43 mainProgram = "uclient-fetch"; 44 platforms = lib.platforms.all; 45 }; 46}