Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

39 lines
893 B
Nix

{
stdenv,
lib,
fetchgit,
cmake,
}:
stdenv.mkDerivation {
pname = "libnl-tiny";
version = "0-unstable-2025-10-20";
src = fetchgit {
url = "https://git.openwrt.org/project/libnl-tiny.git";
rev = "c69fb5ef80b9780fe9add345052aef9ccb5d51f4";
hash = "sha256-QH4w++kekejvvgTye6djs0jYzcNsxfrE3XCBed+Oizo=";
};
nativeBuildInputs = [
cmake
];
preConfigure = ''
sed -e 's|''${prefix}/@CMAKE_INSTALL_LIBDIR@|@CMAKE_INSTALL_FULL_LIBDIR@|g' \
-e 's|''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@|@CMAKE_INSTALL_FULL_INCLUDEDIR@|g' \
-i libnl-tiny.pc.in
'';
meta = {
description = "Tiny OpenWrt fork of libnl";
homepage = "https://git.openwrt.org/?p=project/libnl-tiny.git;a=summary";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [
mkg20001
dvn0
];
platforms = lib.platforms.linux;
};
}