@ -1,29 +1,14 @@
{ stdenv , fetchurl , fetchpatch , openssl , perl , which , dns-root-data }:
{ stdenv , fetchurl , openssl , perl , which , dns-root-data }:
stdenv . mkDerivation rec {
pname = " l d n s " ;
version = " 1 . 7 . 0 " ;
version = " 1 . 7 . 1 " ;
src = fetchurl {
url = " h t t p s : / / w w w . n l n e t l a b s . n l / d o w n l o a d s / l d n s / ${ pname } - ${ version } . t a r . g z " ;
sha256 = " 1 k 5 6 j w 4 h z 8 n j s p f x c f w 0 c z f 1 s m g 0 n 4 8 y l i a 8 9 z i w y x 5 k 9 w d m p 7 y 1 " ;
sha256 = " 0 a c 2 4 2 n 7 9 9 6 f s w q 1 a 3 n l h 1 b b b h r s d w s q 4 m x 7 x q 8 f f q 6 a p l b 4 r j 4 a " ;
} ;
patches = [
( fetchpatch {
name = " C V E - 2 0 1 7 - 1 0 0 0 2 3 1 . p a t c h " ;
url = " h t t p s : / / g i t . n l n e t l a b s . n l / l d n s / p a t c h / ? i d = c 8 3 9 1 7 9 0 " ;
sha256 = " 1 r p r f h 0 y 1 c 2 8 d q i y 3 v g w v w d h n 7 b 5 r s y l f z z b l x 5 x d h w f q g d w 8 v n 0 " ;
excludes = [ " C h a n g e l o g " ] ;
} )
( fetchpatch {
name = " C V E - 2 0 1 7 - 1 0 0 0 2 3 2 . p a t c h " ;
url = " h t t p s : / / g i t . n l n e t l a b s . n l / l d n s / p a t c h / ? i d = 3 b d e e d 0 2 " ;
sha256 = " 0 b v 0 s 5 j j p 0 s s w f g 8 d a 4 7 d 3 4 6 i w p 9 y j h j 9 w 7 f a 3 b x h 1 7 4 b r 0 z j 0 7 r " ;
excludes = [ " C h a n g e l o g " ] ;
} )
] ;
postPatch = ''
patchShebangs doc/doxyparse.pl
'' ;
@ -38,6 +23,7 @@ stdenv.mkDerivation rec {
" - - w i t h - t r u s t - a n c h o r = ${ dns-root-data } / r o o t . k e y "
" - - w i t h - d r i l l "
" - - d i s a b l e - g o s t "
" - - w i t h - e x a m p l e s "
] ++ stdenv . lib . optionals ( stdenv . hostPlatform != stdenv . buildPlatform ) [
" a c _ c v _ f u n c _ m a l l o c _ 0 _ n o n n u l l = y e s "
" a c _ c v _ f u n c _ r e a l l o c _ 0 _ n o n n u l l = y e s "
@ -47,16 +33,11 @@ stdenv.mkDerivation rec {
doCheck = false ; # fails. missing some files
postInstall = ''
# Only 'drill' stays in $out
# the rest are examples:
moveToOutput " b i n / l d n s * " " $ e x a m p l e s "
# with exception of ldns-config, which goes to $dev:
moveToOutput " b i n / l d n s - c o n f i g " " $ d e v "
pushd examples
configureFlagsArray + = ( " - - b i n d i r = $ e x a m p l e s / b i n " )
configurePhase
make
make install
popd
sed - i " $ o u t / l i b / l i b l d n s . l a " - e " s , - L ${ openssl . dev } , - L ${ openssl . out } , g "
'' ;
meta = with stdenv . lib ; {