mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchgit,
|
|
cmake,
|
|
pkg-config,
|
|
libubox,
|
|
ucode,
|
|
json_c,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "uclient";
|
|
version = "unstable-2025-10-03";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.openwrt.org/project/uclient.git";
|
|
rev = "dc909ca71bc884c0e5362e1d7cc7808696cb2add";
|
|
hash = "sha256-jrhLBB3Mb7FvxMtKxG7e7D/hcyygTjx868POGtF+Dcc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
libubox
|
|
ucode
|
|
json_c
|
|
];
|
|
|
|
preConfigure = ''
|
|
sed -e 's|ubox_include_dir libubox/ustream-ssl.h|ubox_include_dir libubox/ustream-ssl.h HINTS ${libubox}/include|g' \
|
|
-e 's|ubox_library NAMES ubox|ubox_library NAMES ubox HINTS ${libubox}/lib|g' \
|
|
-i CMakeLists.txt
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tiny OpenWrt fork of libnl";
|
|
homepage = "https://git.openwrt.org/?p=project/uclient.git;a=summary";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ mkg20001 ];
|
|
mainProgram = "uclient-fetch";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|