astroterm: 1.0.4 -> 1.0.6 (#378908)
[NixPkgs.git] / pkgs / by-name / li / libnl-tiny / package.nix
blob84d9210328e630f61d234ba52244620ff4155fe3
2   stdenv,
3   lib,
4   fetchgit,
5   cmake,
6   pkg-config,
7 }:
9 stdenv.mkDerivation {
10   pname = "libnl-tiny";
11   version = "unstable-2023-12-05";
13   src = fetchgit {
14     url = "https://git.openwrt.org/project/libnl-tiny.git";
15     rev = "965c4bf49658342ced0bd6e7cb069571b4a1ddff";
16     hash = "sha256-kegTV7FXMERW7vjRZo/Xp4cbSBZmynBgge2lK71Fx94=";
17   };
19   nativeBuildInputs = [
20     cmake
21     pkg-config
22   ];
24   preConfigure = ''
25     sed -e 's|''${prefix}/@CMAKE_INSTALL_LIBDIR@|@CMAKE_INSTALL_FULL_LIBDIR@|g' \
26         -e 's|''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@|@CMAKE_INSTALL_FULL_INCLUDEDIR@|g' \
27         -i libnl-tiny.pc.in
28   '';
30   meta = with lib; {
31     description = "Tiny OpenWrt fork of libnl";
32     homepage = "https://git.openwrt.org/?p=project/libnl-tiny.git;a=summary";
33     license = licenses.isc;
34     maintainers = with maintainers; [ mkg20001 ];
35     platforms = platforms.linux;
36   };