pdns: format with nixfmt

This commit is contained in:
Nick Cao 2024-09-28 14:12:49 -04:00
parent 61f358e46a
commit 0b3959c424
No known key found for this signature in database

View File

@ -1,24 +1,25 @@
{ lib {
, stdenv lib,
, fetchurl stdenv,
, pkg-config fetchurl,
, nixosTests pkg-config,
, boost nixosTests,
, yaml-cpp boost,
, libsodium yaml-cpp,
, sqlite libsodium,
, protobuf sqlite,
, openssl protobuf,
, systemd openssl,
, mariadb-connector-c systemd,
, postgresql mariadb-connector-c,
, lua postgresql,
, openldap lua,
, geoip openldap,
, curl geoip,
, unixODBC curl,
, lmdb unixODBC,
, tinycdb lmdb,
tinycdb,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -53,10 +54,12 @@ stdenv.mkDerivation (finalAttrs: {
]; ];
# Configure phase requires 64-bit time_t even on 32-bit platforms. # Configure phase requires 64-bit time_t even on 32-bit platforms.
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.is32bit [ env.NIX_CFLAGS_COMPILE = toString (
"-D_TIME_BITS=64" lib.optionals stdenv.hostPlatform.is32bit [
"-D_FILE_OFFSET_BITS=64" "-D_TIME_BITS=64"
]); "-D_FILE_OFFSET_BITS=64"
]
);
configureFlags = [ configureFlags = [
(lib.enableFeature false "silent-rules") (lib.enableFeature false "silent-rules")
@ -70,9 +73,22 @@ stdenv.mkDerivation (finalAttrs: {
(lib.withFeature true "sqlite3") (lib.withFeature true "sqlite3")
(lib.withFeatureAs true "libcrypto" (lib.getDev openssl)) (lib.withFeatureAs true "libcrypto" (lib.getDev openssl))
(lib.withFeatureAs true "modules" "") (lib.withFeatureAs true "modules" "")
(lib.withFeatureAs true "dynmodules" (lib.concatStringsSep " " [ (lib.withFeatureAs true "dynmodules" (
"bind" "geoip" "gmysql" "godbc" "gpgsql" "gsqlite3" "ldap" "lmdb" "lua2" "pipe" "remote" "tinydns" lib.concatStringsSep " " [
])) "bind"
"geoip"
"gmysql"
"godbc"
"gpgsql"
"gsqlite3"
"ldap"
"lmdb"
"lua2"
"pipe"
"remote"
"tinydns"
]
))
"sysconfdir=/etc/pdns" "sysconfdir=/etc/pdns"
]; ];
@ -96,6 +112,10 @@ stdenv.mkDerivation (finalAttrs: {
platforms = platforms.unix; platforms = platforms.unix;
broken = stdenv.hostPlatform.isDarwin; broken = stdenv.hostPlatform.isDarwin;
license = licenses.gpl2Only; license = licenses.gpl2Only;
maintainers = with maintainers; [ mic92 disassembler nickcao ]; maintainers = with maintainers; [
mic92
disassembler
nickcao
];
}; };
}) })