3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/ldns/default.nix
Dhananjay Balan 6edb3793d3 ldns 1.6.17 -> 1.7.0
Release notes: http://git.nlnetlabs.nl/ldns/tree/Changelog?id=release-1.7.0

Openssl-1.1.0 is used to enable offline DANE verification (Needed for the DANE-TA usage type)

```
configure: error: OpenSSL does not support offline DANE verification (Needed for the DANE-TA usage type).  Please upgrade OpenSSL to version >= 1.1.0 or rerun with --disable-dane-verify or --disable-dane-ta-usage
builder /nix/store/m6n021fbk5h4iywzi3n26j95ksps9mwc-ldns-1.7.0. failed with exit code 1
error: build /nix/store/m6n021fbk5h4iywzi3n26j95ksps9mwc-ldns-1.7.0. failed
drvof drvfor
```
2017-01-04 17:44:47 +01:00

37 lines
851 B
Nix

{stdenv, fetchurl, openssl, perl}:
stdenv.mkDerivation rec {
pname = "ldns";
version = "1.7.0";
name = "${pname}-${version}";
src = fetchurl {
url = "https://www.nlnetlabs.nl/downloads/ldns/${name}.tar.gz";
sha1 = "ceeeccf8a27e61a854762737f6ee02f44662c1b8";
};
patchPhase = ''
patchShebangs doc/doxyparse.pl
'';
outputs = [ "out" "dev" ];
nativeBuildInputs = [ perl ];
buildInputs = [ openssl ];
configureFlags = [ "--with-ssl=${openssl.dev}" "--with-drill"];
postInstall = ''
moveToOutput "bin/ldns-config" "$dev"
'';
meta = with stdenv.lib; {
description = "Library with the aim of simplifying DNS programming in C";
license = licenses.bsd3;
homepage = "http://www.nlnetlabs.nl/projects/ldns/";
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds ];
};
}