@ -1,27 +1,22 @@
{ runCommand , lib , stdenv , cmake , fetchgit , libnl , libubox , uci , ubus , json_c }:
{ lib , stdenv , cmake , fetchgit , libnl , libubox , uci , ubus , json_c , pkg-config }:
stdenv . mkDerivation {
pname = " n e t i f d " ;
version = " u n s t a b l e - 2 0 2 0 - 0 7 - 1 1 " ;
version = " u n s t a b l e - 2 0 2 1 - 0 4 - 0 3 " ;
src = fetchgit {
url = " h t t p s : / / g i t . o p e n w r t . o r g / p r o j e c t / n e t i f d . g i t " ;
rev = " 3 d 9 b d 7 3 e 8 c 2 d 8 a 1 f 7 8 e f f b e 9 2 d d 2 4 9 5 b b d 2 5 5 2 c 4 " ;
sha256 = " 0 8 5 s x 1 g s i g b i 1 j r 1 9 l 3 8 7 r c 5 p 6 j a 1 n p 6 q 2 g b 8 4 k h j d 4 p y i q w k 8 4 0 " ;
rev = " 3 2 7 d a 9 8 9 5 3 2 7 b c 5 6 b 2 3 4 1 3 e e 9 1 a 6 e 6 b 6 e 0 e 4 3 2 9 d " ;
sha256 = " 0 j v k 2 h x 8 k b k c 6 d 7 2 g h 9 r w a p 8 d s 6 q g n m n y 6 3 0 6 v v z x y 6 8 v 0 3 x i k w v " ;
} ;
buildInputs = [ libnl libubox uci ubus json_c ] ;
nativeBuildInputs = [ cmake ] ;
preBuild = ''
export NIX_CFLAGS_COMPILE = " $ N I X _ C F L A G S _ C O M P I L E \
- I $ ( echo " ${ lib . getDev libnl } " /include/libnl * / ) "
'' ;
nativeBuildInputs = [ cmake pkg-config ] ;
meta = with lib ; {
description = " O p e n W r t N e t w o r k i n t e r f a c e c o n f i g u r a t i o n d a e m o n " ;
homepage = " h t t p s : / / g i t . o p e n w r t . o r g / ? p = p r o j e c t / n e t i f d . g i t ; a = s u m m a r y " ;
license = licenses . lgpl21 ;
license = licenses . lgpl21Only ;
platforms = platforms . linux ;
maintainers = with maintainers ; [ petabyteboy ] ;
} ;