nixpkgs/pkgs/development/libraries/ldns/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

49 lines
1.1 KiB
Nix

{stdenv, fetchurl, openssl, perl, dns-root-data}:
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" "man" "examples" ];
nativeBuildInputs = [ perl ];
buildInputs = [ openssl ];
configureFlags = [
"--with-ssl=${openssl.dev}"
"--with-trust-anchor=${dns-root-data}/root.key"
"--with-drill"
"--disable-gost"
];
postInstall = ''
moveToOutput "bin/ldns-config" "$dev"
pushd examples
configureFlagsArray+=( "--bindir=$examples/bin" )
configurePhase
make
make install
popd
'';
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 ];
};
}