ldns: also build examples

This commit is contained in:
Franz Pletz 2017-06-16 05:12:37 +02:00
parent a889454869
commit f5a7ce1317
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
patchShebangs doc/doxyparse.pl
'';
outputs = [ "out" "dev" "man" ];
outputs = [ "out" "dev" "man" "examples" ];
nativeBuildInputs = [ perl ];
buildInputs = [ openssl ];
@ -24,6 +24,13 @@ stdenv.mkDerivation rec {
postInstall = ''
moveToOutput "bin/ldns-config" "$dev"
pushd examples
configureFlagsArray+=( "--bindir=$examples/bin" )
configurePhase
make
make install
popd
'';
meta = with stdenv.lib; {