btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libnl-tiny / package.nix
blob8a8c84513f624fa23279663bf8c7f01c1ecb8d38
1 { stdenv, lib, fetchgit, cmake, pkg-config }:
3 stdenv.mkDerivation {
4   pname = "libnl-tiny";
5   version = "unstable-2023-12-05";
7   src = fetchgit {
8     url = "https://git.openwrt.org/project/libnl-tiny.git";
9     rev = "965c4bf49658342ced0bd6e7cb069571b4a1ddff";
10     hash = "sha256-kegTV7FXMERW7vjRZo/Xp4cbSBZmynBgge2lK71Fx94=";
11   };
13   nativeBuildInputs = [ cmake pkg-config ];
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   '';
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.linux;
27   };