Conflicts: pkgs/development/python-modules/pdftotext/default.nixmain
commit
889227a048
@ -0,0 +1,253 @@ |
||||
{ config, lib, utils, pkgs, ... }: |
||||
|
||||
let |
||||
inherit (lib) |
||||
attrValues |
||||
literalExpression |
||||
mkEnableOption |
||||
mkIf |
||||
mkOption |
||||
types; |
||||
|
||||
cfg = config.services.filebeat; |
||||
|
||||
json = pkgs.formats.json {}; |
||||
in |
||||
{ |
||||
options = { |
||||
|
||||
services.filebeat = { |
||||
|
||||
enable = mkEnableOption "filebeat"; |
||||
|
||||
package = mkOption { |
||||
type = types.package; |
||||
default = pkgs.filebeat; |
||||
defaultText = literalExpression "pkgs.filebeat"; |
||||
example = literalExpression "pkgs.filebeat7"; |
||||
description = '' |
||||
The filebeat package to use. |
||||
''; |
||||
}; |
||||
|
||||
inputs = mkOption { |
||||
description = '' |
||||
Inputs specify how Filebeat locates and processes input data. |
||||
|
||||
This is like <literal>services.filebeat.settings.filebeat.inputs</literal>, |
||||
but structured as an attribute set. This has the benefit |
||||
that multiple NixOS modules can contribute settings to a |
||||
single filebeat input. |
||||
|
||||
An input type can be specified multiple times by choosing a |
||||
different <literal><name></literal> for each, but setting |
||||
<xref linkend="opt-services.filebeat.inputs._name_.type"/> |
||||
to the same value. |
||||
|
||||
See <link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html"/>. |
||||
''; |
||||
default = {}; |
||||
type = types.attrsOf (types.submodule ({ name, ... }: { |
||||
freeformType = json.type; |
||||
options = { |
||||
type = mkOption { |
||||
type = types.str; |
||||
default = name; |
||||
description = '' |
||||
The input type. |
||||
|
||||
Look for the value after <literal>type:</literal> on |
||||
the individual input pages linked from |
||||
<link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html"/>. |
||||
''; |
||||
}; |
||||
}; |
||||
})); |
||||
example = literalExpression '' |
||||
{ |
||||
journald.id = "everything"; # Only for filebeat7 |
||||
log = { |
||||
enabled = true; |
||||
paths = [ |
||||
"/var/log/*.log" |
||||
]; |
||||
}; |
||||
}; |
||||
''; |
||||
}; |
||||
|
||||
modules = mkOption { |
||||
description = '' |
||||
Filebeat modules provide a quick way to get started |
||||
processing common log formats. They contain default |
||||
configurations, Elasticsearch ingest pipeline definitions, |
||||
and Kibana dashboards to help you implement and deploy a log |
||||
monitoring solution. |
||||
|
||||
This is like <literal>services.filebeat.settings.filebeat.modules</literal>, |
||||
but structured as an attribute set. This has the benefit |
||||
that multiple NixOS modules can contribute settings to a |
||||
single filebeat module. |
||||
|
||||
A module can be specified multiple times by choosing a |
||||
different <literal><name></literal> for each, but setting |
||||
<xref linkend="opt-services.filebeat.modules._name_.module"/> |
||||
to the same value. |
||||
|
||||
See <link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules.html"/>. |
||||
''; |
||||
default = {}; |
||||
type = types.attrsOf (types.submodule ({ name, ... }: { |
||||
freeformType = json.type; |
||||
options = { |
||||
module = mkOption { |
||||
type = types.str; |
||||
default = name; |
||||
description = '' |
||||
The name of the module. |
||||
|
||||
Look for the value after <literal>module:</literal> on |
||||
the individual input pages linked from |
||||
<link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules.html"/>. |
||||
''; |
||||
}; |
||||
}; |
||||
})); |
||||
example = literalExpression '' |
||||
{ |
||||
nginx = { |
||||
access = { |
||||
enabled = true; |
||||
var.paths = [ "/path/to/log/nginx/access.log*" ]; |
||||
}; |
||||
error = { |
||||
enabled = true; |
||||
var.paths = [ "/path/to/log/nginx/error.log*" ]; |
||||
}; |
||||
}; |
||||
}; |
||||
''; |
||||
}; |
||||
|
||||
settings = mkOption { |
||||
type = types.submodule { |
||||
freeformType = json.type; |
||||
|
||||
options = { |
||||
|
||||
output.elasticsearch.hosts = mkOption { |
||||
type = with types; listOf str; |
||||
default = [ "127.0.0.1:9200" ]; |
||||
example = [ "myEShost:9200" ]; |
||||
description = '' |
||||
The list of Elasticsearch nodes to connect to. |
||||
|
||||
The events are distributed to these nodes in round |
||||
robin order. If one node becomes unreachable, the |
||||
event is automatically sent to another node. Each |
||||
Elasticsearch node can be defined as a URL or |
||||
IP:PORT. For example: |
||||
<literal>http://192.15.3.2</literal>, |
||||
<literal>https://es.found.io:9230</literal> or |
||||
<literal>192.24.3.2:9300</literal>. If no port is |
||||
specified, <literal>9200</literal> is used. |
||||
''; |
||||
}; |
||||
|
||||
filebeat = { |
||||
inputs = mkOption { |
||||
type = types.listOf json.type; |
||||
default = []; |
||||
internal = true; |
||||
description = '' |
||||
Inputs specify how Filebeat locates and processes |
||||
input data. Use <xref |
||||
linkend="opt-services.filebeat.inputs"/> instead. |
||||
|
||||
See <link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html"/>. |
||||
''; |
||||
}; |
||||
modules = mkOption { |
||||
type = types.listOf json.type; |
||||
default = []; |
||||
internal = true; |
||||
description = '' |
||||
Filebeat modules provide a quick way to get started |
||||
processing common log formats. They contain default |
||||
configurations, Elasticsearch ingest pipeline |
||||
definitions, and Kibana dashboards to help you |
||||
implement and deploy a log monitoring solution. |
||||
|
||||
Use <xref linkend="opt-services.filebeat.modules"/> instead. |
||||
|
||||
See <link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules.html"/>. |
||||
''; |
||||
}; |
||||
}; |
||||
}; |
||||
}; |
||||
default = {}; |
||||
example = literalExpression '' |
||||
{ |
||||
settings = { |
||||
output.elasticsearch = { |
||||
hosts = [ "myEShost:9200" ]; |
||||
username = "filebeat_internal"; |
||||
password = { _secret = "/var/keys/elasticsearch_password"; }; |
||||
}; |
||||
logging.level = "info"; |
||||
}; |
||||
}; |
||||
''; |
||||
|
||||
description = '' |
||||
Configuration for filebeat. See |
||||
<link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-reference-yml.html"/> |
||||
for supported values. |
||||
|
||||
Options containing secret data should be set to an attribute |
||||
set containing the attribute <literal>_secret</literal> - a |
||||
string pointing to a file containing the value the option |
||||
should be set to. See the example to get a better picture of |
||||
this: in the resulting |
||||
<filename>filebeat.yml</filename> file, the |
||||
<literal>output.elasticsearch.password</literal> |
||||
key will be set to the contents of the |
||||
<filename>/var/keys/elasticsearch_password</filename> file. |
||||
''; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
config = mkIf cfg.enable { |
||||
|
||||
services.filebeat.settings.filebeat.inputs = attrValues cfg.inputs; |
||||
services.filebeat.settings.filebeat.modules = attrValues cfg.modules; |
||||
|
||||
systemd.services.filebeat = { |
||||
description = "Filebeat log shipper"; |
||||
wantedBy = [ "multi-user.target" ]; |
||||
wants = [ "elasticsearch.service" ]; |
||||
after = [ "elasticsearch.service" ]; |
||||
serviceConfig = { |
||||
ExecStartPre = pkgs.writeShellScript "filebeat-exec-pre" '' |
||||
set -euo pipefail |
||||
|
||||
umask u=rwx,g=,o= |
||||
|
||||
${utils.genJqSecretsReplacementSnippet |
||||
cfg.settings |
||||
"/var/lib/filebeat/filebeat.yml" |
||||
} |
||||
''; |
||||
ExecStart = '' |
||||
${cfg.package}/bin/filebeat -e \ |
||||
-c "/var/lib/filebeat/filebeat.yml" \ |
||||
--path.data "/var/lib/filebeat" |
||||
''; |
||||
Restart = "always"; |
||||
StateDirectory = "filebeat"; |
||||
}; |
||||
}; |
||||
}; |
||||
} |
@ -0,0 +1,31 @@ |
||||
{ lib, stdenv, fetchurl, wrapGAppsHook |
||||
, cargo, desktop-file-utils, meson, ninja, pkg-config, python3, rustc |
||||
, dbus, gdk-pixbuf, glib, gtk3, gtksourceview4, libhandy |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "icon-library"; |
||||
version = "0.0.8"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://gitlab.gnome.org/World/design/icon-library/uploads/fdf890706e0eef2458a5285e3bf65dd5/icon-library-${version}.tar.xz"; |
||||
sha256 = "0807b56bgm8j1gpq4nf8x31gq9wqhcmpzpkqw6s4wissw3cb7q96"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
cargo desktop-file-utils meson ninja pkg-config python3 rustc wrapGAppsHook |
||||
]; |
||||
buildInputs = [ dbus gdk-pixbuf glib gtk3 gtksourceview4 libhandy ]; |
||||
|
||||
postPatch = '' |
||||
patchShebangs build-aux/meson_post_install.py |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://gitlab.gnome.org/World/design/icon-library"; |
||||
description = "Symbolic icons for your apps"; |
||||
maintainers = with maintainers; [ qyliss ]; |
||||
license = licenses.gpl3Plus; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
@ -0,0 +1,31 @@ |
||||
{ lib, stdenv, fetchurl, wrapGAppsHook |
||||
, cargo, desktop-file-utils, meson, ninja, pkg-config, python3, rustc |
||||
, gdk-pixbuf, glib, gtk3, libhandy, libxml2 |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "symbolic-preview"; |
||||
version = "0.0.2"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://gitlab.gnome.org/World/design/symbolic-preview/uploads/91fd27bb70553c8d6c3ad2a35446ff6e/symbolic-preview-${version}.tar.xz"; |
||||
sha256 = "1v8l10ppwbjkrq7nvb0wqc3pid6pd8dqpki3jhmjjkmbd7rpdpkq"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
cargo desktop-file-utils meson ninja pkg-config python3 rustc wrapGAppsHook |
||||
]; |
||||
buildInputs = [ gdk-pixbuf glib gtk3 libhandy libxml2 ]; |
||||
|
||||
postPatch = '' |
||||
patchShebangs build-aux/meson_post_install.py |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://gitlab.gnome.org/World/design/symbolic-preview"; |
||||
description = "Symbolics made easy"; |
||||
maintainers = with maintainers; [ qyliss ]; |
||||
license = licenses.gpl3Plus; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
@ -0,0 +1,7 @@ |
||||
# The Bazel build tool |
||||
|
||||
https://bazel.build/ |
||||
|
||||
The bazel tool requires regular maintenance, especially under darwin, so we created a maintainers team. |
||||
|
||||
Please ping @NixOS/bazel in your github PR/issue to increase your chance of a quick turnaround, thanks! |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,27 @@ |
||||
{lib, stdenv, fetchurl, unzip}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "jtds"; |
||||
version = "1.3.1"; |
||||
|
||||
src = fetchurl { |
||||
url = "mirror://sourceforge/jtds/${version}/${pname}-${version}-dist.zip"; |
||||
sha256 = "sha256-eV0P8QdjfuHXzYssH8yHhynuH0Clg7MAece2Up3S9M0"; |
||||
}; |
||||
|
||||
sourceRoot = "."; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/share/java |
||||
cp jtds-*.jar $out/share/java/jtds-jdbc.jar |
||||
''; |
||||
|
||||
nativeBuildInputs = [ unzip ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Pure Java (type 4) JDBC 3.0 driver for Microsoft SQL Server"; |
||||
homepage = "http://jtds.sourceforge.net/"; |
||||
license = licenses.lgpl21; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
@ -1,26 +1,33 @@ |
||||
{ lib, buildGoPackage, fetchFromGitHub }: |
||||
{ lib, buildGoModule, fetchFromGitHub, nixosTests }: |
||||
|
||||
with lib; |
||||
|
||||
buildGoPackage rec { |
||||
buildGoModule rec { |
||||
pname = "flannel"; |
||||
version = "0.13.0"; |
||||
version = "0.15.1"; |
||||
rev = "v${version}"; |
||||
|
||||
goPackagePath = "github.com/coreos/flannel"; |
||||
vendorSha256 = null; |
||||
|
||||
src = fetchFromGitHub { |
||||
inherit rev; |
||||
owner = "coreos"; |
||||
owner = "flannel-io"; |
||||
repo = "flannel"; |
||||
sha256 = "0mmswnaybwpf18h832haapcs5b63wn5w2hax0smm3inldiggsbw8"; |
||||
sha256 = "1p4rz4kdiif8i78zgxhw6dd0c1bq159f6l1idvig5apph7zi2bwm"; |
||||
}; |
||||
|
||||
ldflags = [ "-X github.com/flannel-io/flannel/version.Version=${rev}" ]; |
||||
|
||||
# TestRouteCache/TestV6RouteCache fail with "Failed to create newns: operation not permitted" |
||||
doCheck = false; |
||||
|
||||
passthru.tests = { inherit (nixosTests) flannel; }; |
||||
|
||||
meta = { |
||||
description = "Network fabric for containers, designed for Kubernetes"; |
||||
license = licenses.asl20; |
||||
homepage = "https://github.com/coreos/flannel"; |
||||
maintainers = with maintainers; [johanot offline]; |
||||
homepage = "https://github.com/flannel-io/flannel"; |
||||
maintainers = with maintainers; [ johanot offline ]; |
||||
platforms = with platforms; linux; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue