Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 72e547e2ad7a
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dbb504440834
Choose a head ref
  • 6 commits
  • 7 files changed
  • 5 contributors

Commits on Jul 25, 2019

  1. lib/types: change merge strategy for str, int, float and enum

    Change to `mergeEqualOption`.
    danbst committed Jul 25, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dhess Drew Hess
    Copy the full SHA
    7953832 View commit details

Commits on Jul 29, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    66b551b View commit details
  2. Copy the full SHA
    a5328e1 View commit details
  3. vlang: init at 0.1.16 (#63738)

    Madouura authored and veprbl committed Jul 29, 2019
    Copy the full SHA
    aaf2ecd View commit details
  4. Merge pull request #65380 from danbst/int-merge-one-option

    lib/types: change merge strategy for `str`, `int`, `float`, `path` and `enum`
    infinisil authored Jul 29, 2019
    Copy the full SHA
    377cd8a View commit details
  5. Merge pull request #65560 from thefloweringash/fluentd-update

     fluentd: 1.4.2 -> 1.6.2
    veprbl authored Jul 29, 2019
    Copy the full SHA
    dbb5044 View commit details
10 changes: 5 additions & 5 deletions lib/types.nix
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ rec {
name = "int";
description = "signed integer";
check = isInt;
merge = mergeOneOption;
merge = mergeEqualOption;
};

# Specialized subdomains of int
@@ -176,14 +176,14 @@ rec {
name = "float";
description = "floating point number";
check = isFloat;
merge = mergeOneOption;
merge = mergeEqualOption;
};

str = mkOptionType {
name = "str";
description = "string";
check = isString;
merge = mergeOneOption;
merge = mergeEqualOption;
};

strMatching = pattern: mkOptionType {
@@ -243,7 +243,7 @@ rec {
name = "path";
# Hacky: there is no ‘isPath’ primop.
check = x: builtins.substring 0 1 (toString x) == "/";
merge = mergeOneOption;
merge = mergeEqualOption;
};

# drop this in the future:
@@ -415,7 +415,7 @@ rec {
name = "enum";
description = "one of ${concatMapStringsSep ", " show values}";
check = flip elem values;
merge = mergeOneOption;
merge = mergeEqualOption;
functor = (defaultFunctor name) // { payload = values; binOp = a: b: unique (a ++ b); };
};

1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -85,6 +85,7 @@ in
flannel = handleTestOn ["x86_64-linux"] ./flannel.nix {};
flatpak = handleTest ./flatpak.nix {};
flatpak-builder = handleTest ./flatpak-builder.nix {};
fluentd = handleTest ./fluentd.nix {};
fsck = handleTest ./fsck.nix {};
fwupd = handleTestOn ["x86_64-linux"] ./fwupd.nix {}; # libsmbios is unsupported on aarch64
gdk-pixbuf = handleTest ./gdk-pixbuf.nix {};
46 changes: 46 additions & 0 deletions nixos/tests/fluentd.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import ./make-test.nix ({ pkgs, lib, ... }: {
name = "fluentd";

machine = { pkgs, ... }: {
services.fluentd = {
enable = true;
config = ''
<source>
@type http
port 9880
</source>
<match **>
type copy
<store>
@type file
format json
path /tmp/fluentd
symlink_path /tmp/current-log
</store>
<store>
@type stdout
</store>
</match>
'';
};
};

testScript = let
testMessage = "an example log message";

payload = pkgs.writeText "test-message.json" (builtins.toJSON {
inherit testMessage;
});
in ''
$machine->start;
$machine->waitForUnit('fluentd.service');
$machine->waitForOpenPort(9880);
$machine->succeed("curl -fsSL -X POST -H 'Content-type: application/json' -d @${payload} http://localhost:9880/test.tag");
$machine->succeed("systemctl stop fluentd"); # blocking flush
$machine->succeed("grep '${testMessage}' /tmp/current-log");
'';
})
51 changes: 51 additions & 0 deletions pkgs/development/compilers/vlang/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{ stdenv, fetchFromGitHub, glfw, freetype, curl }:

stdenv.mkDerivation rec {
pname = "vlang";
version = "0.1.16";

src = fetchFromGitHub {
owner = "vlang";
repo = "v";
rev = "${version}";
sha256 = "08zgwy9ac3wa5ixy8rdw6izpn1n1c3ydb9rl8z8graw0bgv719ma";
};

# V compiler source translated to C for bootstrap.
vc = fetchFromGitHub {
owner = "vlang";
repo = "vc";
rev = "${version}";
sha256 = "0k6c7v3r3cirypsqbaq10qlgg41v19rsnc1ygam4il2p8rsmfwz3";
};

enableParallelBuilding = true;
buildInputs = [ glfw freetype curl ];

buildPhase = ''
runHook preBuild
cc -std=gnu11 -w -o v $vc/v.c -lm
./v -prod -o v compiler
# -fPIC -pie required for examples/hot_code_reloading
make CFLAGS+="-fPIC -pie" thirdparty
runHook postBuild
'';

installPhase = ''
runHook preInstall
mkdir -p $out/{bin,lib/vlang,share/vlang}
cp -r examples $out/share/vlang
cp -r {vlib,thirdparty} $out/lib/vlang
cp v $out/lib/vlang
ln -s $out/lib/vlang/v $out/bin/v
runHook postInstall
'';

meta = with stdenv.lib; {
homepage = "https://vlang.io/";
description = "Simple, fast, safe, compiled language for developing maintainable software";
license = licenses.mit;
maintainers = with maintainers; [ chiiruno ];
platforms = platforms.all;
};
}
76 changes: 38 additions & 38 deletions pkgs/tools/misc/fluentd/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -3,80 +3,80 @@ GEM
specs:
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
aws-eventstream (1.0.2)
aws-partitions (1.149.0)
aws-sdk-core (3.48.3)
aws-eventstream (1.0.3)
aws-partitions (1.193.0)
aws-sdk-core (3.61.1)
aws-eventstream (~> 1.0, >= 1.0.2)
aws-partitions (~> 1.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-firehose (1.14.0)
aws-sdk-core (~> 3, >= 3.48.2)
aws-sdk-firehose (1.20.0)
aws-sdk-core (~> 3, >= 3.61.1)
aws-sigv4 (~> 1.1)
aws-sdk-kinesis (1.13.1)
aws-sdk-core (~> 3, >= 3.48.2)
aws-sdk-kinesis (1.19.0)
aws-sdk-core (~> 3, >= 3.61.1)
aws-sigv4 (~> 1.1)
aws-sdk-kms (1.16.0)
aws-sdk-core (~> 3, >= 3.48.2)
aws-sdk-kms (1.24.0)
aws-sdk-core (~> 3, >= 3.61.1)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.36.0)
aws-sdk-core (~> 3, >= 3.48.2)
aws-sdk-s3 (1.46.0)
aws-sdk-core (~> 3, >= 3.61.1)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.0)
aws-sdk-sqs (1.13.0)
aws-sdk-core (~> 3, >= 3.48.2)
aws-sigv4 (~> 1.1)
aws-sdk-sqs (1.20.0)
aws-sdk-core (~> 3, >= 3.61.1)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.1.0)
aws-eventstream (~> 1.0, >= 1.0.2)
bson (4.4.2)
bson (4.5.0)
cool.io (1.5.4)
dig_rb (1.0.1)
digest-crc (0.4.1)
elasticsearch (6.3.0)
elasticsearch-api (= 6.3.0)
elasticsearch-transport (= 6.3.0)
elasticsearch-api (6.3.0)
elasticsearch (7.2.1)
elasticsearch-api (= 7.2.1)
elasticsearch-transport (= 7.2.1)
elasticsearch-api (7.2.1)
multi_json
elasticsearch-transport (6.3.0)
elasticsearch-transport (7.2.1)
faraday
multi_json
excon (0.62.0)
excon (0.65.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
fluent-config-regexp-type (1.0.0)
fluentd (> 1.0.0, < 2)
fluent-plugin-elasticsearch (3.4.1)
fluent-plugin-elasticsearch (3.5.3)
elasticsearch
excon
fluentd (>= 0.14.22)
fluent-plugin-kafka (0.9.2)
fluent-plugin-kafka (0.11.0)
fluentd (>= 0.10.58, < 2)
ltsv
ruby-kafka (>= 0.7.1, < 0.8.0)
fluent-plugin-kinesis (3.0.0)
ruby-kafka (>= 0.7.8, < 0.8.0)
fluent-plugin-kinesis (3.1.0)
aws-sdk-firehose (~> 1, != 1.9, != 1.5)
aws-sdk-kinesis (~> 1, != 1.5, != 1.4)
fluentd (>= 0.14.10, < 2)
google-protobuf (~> 3)
fluent-plugin-mongo (1.2.2)
fluent-plugin-mongo (1.3.0)
fluentd (>= 0.14.22, < 2)
mongo (~> 2.6.0)
fluent-plugin-record-reformer (0.9.1)
fluentd
fluent-plugin-rewrite-tag-filter (2.2.0)
fluent-config-regexp-type
fluentd (>= 0.14.2, < 2)
fluent-plugin-s3 (1.1.9)
fluent-plugin-s3 (1.1.11)
aws-sdk-s3 (~> 1.0)
aws-sdk-sqs (~> 1.0)
fluentd (>= 0.14.22, < 2)
fluent-plugin-scribe (1.0.0)
fluentd
thrift (~> 0.8.0)
fluent-plugin-webhdfs (1.2.3)
fluentd (>= 0.14.4)
fluent-plugin-webhdfs (1.2.4)
fluentd (>= 0.14.22)
webhdfs (>= 0.6.0)
fluentd (1.4.2)
fluentd (1.6.2)
cool.io (>= 1.4.5, < 2.0.0)
dig_rb (~> 1.0.0)
http_parser.rb (>= 0.5.1, < 0.7.0)
@@ -87,27 +87,27 @@ GEM
tzinfo (~> 1.0)
tzinfo-data (~> 1.0)
yajl-ruby (~> 1.0)
google-protobuf (3.7.1)
google-protobuf (3.9.0)
http_parser.rb (0.6.0)
jmespath (1.4.0)
ltsv (0.1.2)
mongo (2.6.4)
bson (>= 4.3.0, < 5.0.0)
msgpack (1.2.9)
msgpack (1.3.0)
multi_json (1.13.1)
multipart-post (2.0.0)
public_suffix (3.0.3)
ruby-kafka (0.7.6)
multipart-post (2.1.1)
public_suffix (3.1.1)
ruby-kafka (0.7.9)
digest-crc
serverengine (2.1.0)
serverengine (2.1.1)
sigdump (~> 0.2.2)
sigdump (0.2.4)
strptime (0.2.3)
thread_safe (0.3.6)
thrift (0.8.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
tzinfo-data (1.2019.1)
tzinfo-data (1.2019.2)
tzinfo (>= 1.0.0)
webhdfs (0.8.0)
addressable
@@ -129,4 +129,4 @@ DEPENDENCIES
fluentd

BUNDLED WITH
1.16.3
1.17.2
Loading