mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 23:13:56 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
1011 B
Nix
32 lines
1011 B
Nix
{ stdenv, lib, fetchgit, cmake, pkg-config, libubox }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "uclient";
|
|
version = "unstable-2023-04-13";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.openwrt.org/project/uclient.git";
|
|
rev = "007d945467499f43656b141171d31f5643b83a6c";
|
|
hash = "sha256-A47dyVc2MtOL6aImZ0b3SMWH2vzjfAXzRAOF4nfH6S0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buidInputs = [ libubox ];
|
|
|
|
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 = with lib; {
|
|
description = "Tiny OpenWrt fork of libnl";
|
|
homepage = "https://git.openwrt.org/?p=project/uclient.git;a=summary";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
mainProgram = "uclient-fetch";
|
|
platforms = platforms.all;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|