uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
52
pkgs/servers/dns/dnsdist/default.nix
Normal file
52
pkgs/servers/dns/dnsdist/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, systemd
|
||||
, boost, libsodium, libedit, re2
|
||||
, net-snmp, lua, protobuf, openssl, zlib, h2o
|
||||
, nghttp2, nixosTests
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dnsdist";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.powerdns.com/releases/dnsdist-${version}.tar.bz2";
|
||||
sha256 = "sha256-eMxyywzPf7Xz8vrgnHntplpSVjdNoJu1Qbc16mho/GQ=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Disable tests requiring networking:
|
||||
# "Error connecting to new server with address 192.0.2.1:53: connecting socket to 192.0.2.1:53: Network is unreachable"
|
||||
./disable-network-tests.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config protobuf ];
|
||||
buildInputs = [ systemd boost libsodium libedit re2 net-snmp lua openssl zlib h2o nghttp2 ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-libsodium"
|
||||
"--with-re2"
|
||||
"--enable-dnscrypt"
|
||||
"--enable-dns-over-tls"
|
||||
"--enable-dns-over-https"
|
||||
"--with-protobuf=yes"
|
||||
"--with-net-snmp"
|
||||
"--disable-dependency-tracking"
|
||||
"--enable-unit-tests"
|
||||
"--enable-systemd"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.tests = {
|
||||
inherit (nixosTests) dnsdist;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "DNS Loadbalancer";
|
||||
homepage = "https://dnsdist.org";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ jojosch ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue