ldns: also build examples

This commit is contained in:
Franz Pletz
2017-07-11 21:21:28 +02:00
parent a889454869
commit f5a7ce1317
+8 -1
View File
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
patchShebangs doc/doxyparse.pl patchShebangs doc/doxyparse.pl
''; '';
outputs = [ "out" "dev" "man" ]; outputs = [ "out" "dev" "man" "examples" ];
nativeBuildInputs = [ perl ]; nativeBuildInputs = [ perl ];
buildInputs = [ openssl ]; buildInputs = [ openssl ];
@@ -24,6 +24,13 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
moveToOutput "bin/ldns-config" "$dev" moveToOutput "bin/ldns-config" "$dev"
pushd examples
configureFlagsArray+=( "--bindir=$examples/bin" )
configurePhase
make
make install
popd
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {