Commit Graph
100 Commits
Author SHA1 Message Date
Bas van Dijk 8d6fbef92a buildGoModule: support overriding the go-modules derivation 2019-07-28 13:28:27 +02:00
Bas van Dijk 1ff227a979 Merge pull request #60367 from basvandijk/trace-cmd-and-kernelshark
kernelshark: init at 0.9.8 & trace-cmd: 2.6 -> 2.8.3
2019-07-28 11:33:17 +02:00
Bas van Dijk c9c895062f trace-cmd/kernelshark: downgrade to the trace-cmd-stable-v2.8 branch 2019-07-27 20:33:33 +02:00
Bas van Dijk 7803c04c7c kernelshark: 0.9.8-f97e28a -> 1.0.0 2019-07-27 20:02:58 +02:00
Bas van Dijk d9e3118ab0 kernelshark: remove doxygen and graphviz because they aren't used 2019-07-25 22:17:43 +02:00
Bas van Dijk 585de35cd6 kernelshark: install documentation 2019-07-25 22:13:17 +02:00
Bas van Dijk 4542cca0b2 trace-cmd: 2.8-0c957d2 -> 2.9-dev-1517dc3 2019-07-25 21:36:09 +02:00
Bas van Dijk d1466e7006 trace-cmd: 2.8-c8d9e1a -> 2.8-0c957d2 2019-07-25 21:36:09 +02:00
Bas van Dijk fa5a346244 kernelshark: init at 0.9.8-c8d9e1a 2019-07-25 21:36:09 +02:00
Bas van Dijk a9b4881f94 trace-cmd: 2.6 -> 2.8-c8d9e1a 2019-07-25 21:36:09 +02:00
Bas van Dijk 58ea28eb2c lib: allow sourceByRegex to be composed after cleanSourceWith
`sourceByRegex src regexes` should include a source file if one of the
regular expressions `regexes` matches the path of that file relative
to `src`.

However to compute this relative path `sourceByRegex` uses:

```
relPath = lib.removePrefix (toString src + "/") (toString path);
```

Note that `toString path` evaluates to an absolute file somewhere
under `src` and not under `/nix/store`.

The problem is that this doesn't work if `src` is a `cleanSourceWith`
invocation as well because `toString src` will then evaluate to
`src.outPath` which will evaluate to `builtins.filterSource ...` which
evaluates to a path in `/nix/store` which is not a prefix of `path`.

The solution is to replace `src` with `origSrc` where

```
origSrc = if isFiltered then src.origSrc else src;
isFiltered = src ? _isLibCleanSourceWith;
```

Test this by executing the following from the nixpkgs repo:

```
(cat << 'EOI'
let
  pkgs = import ./. {};
in pkgs.runCommand "test-sourceByRegex" {
  test_sourceByRegex =
    let
      src1 = pkgs.lib.sourceByRegex ./.  [ "^test-sourceByRegex.nix$" ];
      src2 = pkgs.lib.sourceByRegex src1 [ "^test-sourceByRegex.nix$" ];
    in src2 + "/test-sourceByRegex.nix";
} ''
 cp $test_sourceByRegex $out
''
EOI
) > test-sourceByRegex.nix
nix-build test-sourceByRegex.nix
```
2019-07-19 16:23:11 +02:00
Bas van Dijk 5853fdb9ec Merge pull request #63721 from basvandijk/libressl-openssl-license
libressl: add openssl license
2019-07-01 15:52:10 +02:00
Bas van Dijk 6ecce7167a Merge pull request #63772 from basvandijk/cargo-license-homepage
cargo-license: add meta.homepage
2019-06-25 15:33:56 +02:00
Bas van Dijk b95c4ce302 cargo-license: add meta.homepage 2019-06-25 15:31:55 +02:00
Bas van Dijk 474da44339 Merge pull request #63706 from basvandijk/cargo-license-0.2.0
cargo-license: init at 0.2.0
2019-06-24 11:32:41 +02:00
Bas van Dijk 4099a9ad38 libressl: add openssl license
LibreSSL is also licensed under the OpenSSL license. See:

https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/libssl/LICENSE?rev=1.12&content-type=text/plain
2019-06-24 10:16:02 +02:00
Bas van Dijk 7720379005 cargo-license: init at 0.2.0 2019-06-24 00:20:57 +02:00
Bas van Dijk cee35739ff mkshell: improve mergeInputs
mergeInputs is now simply defined in terms of `concatLists` and
`catAttrs` instead of a more complicated `foldr`.

Note that the order of PATH has also changed. For example running the
following with nix-shell:

  let
    pkgs = import <nixpkgs> {};

    shell1 = pkgs.mkShell {
      buildInputs = [ pkgs.htop ];
    };

    shell2 = pkgs.mkShell {
      buildInputs = [ pkgs.hello ];
    };

    shell3 = pkgs.mkShell {
      inputsFrom = [ shell1 shell2 ];
      buildInputs = [ pkgs.tree ];
    };

  in shell3

Results in the following PATH:

$ echo $PATH
...
/nix/store/yifq4bikf7m07160bpia7z48ciqddbfi-tree-1.8.0/bin:
/nix/store/vhxqk81234ivqw1a7j200a1c69k8mywi-htop-2.2.0/bin:
/nix/store/n9vm3m58y1n3rg3mlll17wanc9hln58k-hello-2.10/bin
...

Previously the order was:

/nix/store/n9vm3m58y1n3rg3mlll17wanc9hln58k-hello-2.10/bin
/nix/store/vhxqk81234ivqw1a7j200a1c69k8mywi-htop-2.2.0/bin:
/nix/store/yifq4bikf7m07160bpia7z48ciqddbfi-tree-1.8.0/bin:

I think the new order makes more sense because it allows to override
the PATH in the outermost mkShell.
2019-06-23 22:20:10 +02:00
Bas van Dijk 76ef802d3d mkShell: compose shellHooks
Running the following expression with nix-shell:

  let
    pkgs = import <nixpkgs> {};

    shell1 = pkgs.mkShell {
      shellHook = ''
        echo shell1
      '';
    };

    shell2 = pkgs.mkShell {
      shellHook = ''
        echo shell2
      '';
    };

    shell3 = pkgs.mkShell {
      inputsFrom = [ shell1 shell2 ];
      shellHook = ''
        echo shell3
      '';
    };
  in shell3

Will now results in:
shell2
shell1
shell3

Note that packages in the front of inputsFrom have precedence over
packages in the back. The outermost mkShell has precedence over all.
2019-06-23 22:13:57 +02:00
Bas van Dijk 3e9f9a64d1 Merge pull request #63521 from basvandijk/cargo-graph-0.2.0-d895af1
cargo-graph: init at 0.2.0-d895af1
2019-06-20 09:25:02 +02:00
Bas van Dijk c2f3f169f9 cargo-graph: init at 0.2.0-d895af1 2019-06-20 08:39:00 +02:00
Bas van Dijk ad96121365 Merge pull request #63333 from knl/enable-fsevents-api-for-fswatch
fswatch: Enable FSEvents API on Darwin
2019-06-18 09:26:20 +02:00
Bas van Dijk 0bc377d47d Merge pull request #63160 from basvandijk/opencv-4.1.0
opencv: 4.0.1 -> 4.1.0
2019-06-16 08:57:30 +02:00
Bas van Dijk bf5e3c24d0 Merge pull request #63162 from basvandijk/opencv-3.4.6
opencv: 3.4.5 -> 3.4.6
2019-06-16 08:55:49 +02:00
Bas van Dijk 9f52f0e6b8 opencv: 3.4.5 -> 3.4.6 2019-06-15 16:54:31 +02:00
Bas van Dijk baf54b6b8b opencv: 4.0.1 -> 4.1.0 2019-06-15 16:17:51 +02:00
Bas van Dijk b71fa33328 Merge pull request #62655 from basvandijk/terraform-provider-elasticsearch-0.7.0
terraform-provider-elasticsearch: 0.6.0 -> 0.7.0
2019-06-04 14:12:25 +02:00
Bas van Dijk 6b4279e792 terraform-provider-elasticsearch: 0.6.0 -> 0.7.0 2019-06-04 12:34:24 +02:00
Bas van Dijk f6ba5b91e8 Merge pull request #62616 from basvandijk/strongswan-5.8.0
strongswan: 5.7.2 -> 5.8.0
2019-06-03 23:43:20 +02:00
Bas van Dijk 1959799d51 strongswan: 5.7.2 -> 5.8.0 2019-06-03 18:01:55 +02:00
Bas van Dijk ea061fd71d Merge pull request #62122 from basvandijk/terraform-provider-elasticsearch-0.6.0
terraform-provider-elasticsearch: init at 0.6.0
2019-05-27 19:34:15 +02:00
Bas van Dijk d19b0b2ddf terraform-provider-elasticsearch: init at 0.6.0 2019-05-27 17:48:36 +02:00
Bas van Dijk a4354df1f1 Merge pull request #61633 from basvandijk/elasticsearch-curator-5.7.6
elasticsearch-curator: 5.6.0 -> 5.7.6 & upgrades of dependencies (based on staging)
2019-05-24 16:02:39 +02:00
Bas van Dijk 72fc6f7e5c libbytesize: 1.4 -> 2.0 2019-05-24 15:59:09 +02:00
Bas van Dijk 3df8bed953 pythonPackages.elasticsearch-dsl: 6.3.1 -> 7.0.0 2019-05-24 12:54:13 +02:00
Bas van Dijk e5f4e17ad4 elasticsearch-curator: 5.6.0 -> 5.7.6 2019-05-24 12:54:13 +02:00
Bas van Dijk 4812547618 pythonPackages.elasticsearch: 6.3.1 -> 7.0.1 2019-05-24 12:54:13 +02:00
Bas van Dijk f12f9afa2a awscli: 1.16.106 -> 1.16.160 2019-05-24 12:54:13 +02:00
Bas van Dijk adef5b9c97 pythonPackages.boto3: 1.9.96 -> 1.9.150 2019-05-24 12:54:13 +02:00
Bas van Dijk 6efa24ee07 pythonPackages.botocore: 1.12.96 -> 1.12.150 2019-05-24 12:54:13 +02:00
Bas van Dijk c404cfd801 pythonPackages.certifi: 2018.11.29 -> 2019.3.9 2019-05-24 12:54:13 +02:00
Bas van Dijk edb1668130 Merge pull request #61939 from basvandijk/terraform-0.12
terraform: 0.11.13 -> 0.11.14 & 0.12.0-rc1 -> 0.12.0
2019-05-23 14:54:17 +02:00
Bas van Dijk 8669561bde terraform_0_12: 0.12.0-rc1 -> 0.12.0 2019-05-23 11:07:23 +02:00
Bas van Dijk 2bcc8de182 terraform_0_11: 0.11.13 -> 0.11.14 2019-05-23 11:06:57 +02:00
Bas van Dijk 240ae5eb87 Merge pull request #61604 from basvandijk/tinydns-nixos-test
nixos: add test for tinydns
2019-05-17 01:48:40 +02:00
Bas van Dijk 71fdb69314 nixos: add test for tinydns 2019-05-16 23:46:17 +02:00
Bas van Dijk cc3d0f4acf Merge pull request #61255 from basvandijk/elk-old-upgrades
elk5: 5.6.9 -> 5.6.16 & elk6: 6.7.1 -> 6.7.2
2019-05-10 23:48:21 +02:00
Bas van Dijk 1a0818e941 elk6: 6.7.1 -> 6.7.2 2019-05-10 23:32:44 +02:00
Bas van Dijk 8673d82bc1 elk5: 5.6.9 -> 5.6.16 2019-05-10 22:46:12 +02:00
Bas van Dijk 4b7aea9e8c Merge pull request #61237 from basvandijk/journalbeat-fixes
NixOS: support journalbeat >= 6
2019-05-10 18:44:44 +02:00
Bas van Dijk 477c552c7d nixos/journalbeat: support journalbeat >= 6 & add test 2019-05-10 15:41:41 +02:00
Bas van Dijk a662f99139 journalbeat: make journalbeat6 the default
Version 6.x is also the default for the other beats.
2019-05-10 15:39:11 +02:00
Bas van Dijk 42c9c6df73 journalbeat7: fix binary by setting RPATH to systemd using patchelf 2019-05-10 15:36:53 +02:00
Bas van Dijk 42f357d1ac journalbeat6: fix binary by setting RPATH to systemd using patchelf 2019-05-10 15:29:35 +02:00
Bas van Dijk 6f0a6bfc60 journalbeat: patchelf the binary instead of using a wrapper 2019-05-10 15:27:45 +02:00
Bas van Dijk 46a869b286 Merge pull request #61185 from basvandijk/elk-7.0.1
elk: 7.0.0 -> 7.0.1
2019-05-09 15:50:03 +02:00
Bas van Dijk 78cb9b7898 elk: 7.0.0 -> 7.0.1 2019-05-09 11:37:48 +02:00
Bas van Dijk 517c52ec2e postgresql: always create the $out/bin directory
This is needed because some PostgreSQL plugins don't have a bin
directory. If only these plugins are listed in cfg.extraPlugins buildEnv
will turn $out/bin into a symbolic link to ${pg}/bin. Lateron we try to
rm $out/bin/{pg_config,postgres,pg_ctl} which will then fail because
$out/bin will be read-only.
2019-05-04 14:11:52 -05:00
Bas van Dijk d6b866e52b Merge pull request #60464 from basvandijk/strongswan-refactor
strongswan: cleanup
2019-04-30 15:49:01 +02:00
Bas van Dijk 80df0495bb strongswan: remove the now unnecessary dependency on libpcap
Since #51787 has been merged we can remove this ad-hoc fix.
2019-04-30 10:28:31 +02:00
Bas van Dijk d771036ab2 strongswan: use placeholder instead of configureFlagsArray 2019-04-30 10:27:49 +02:00
Bas van Dijk 710b9675fc Merge pull request #59983 from ivan/prometheus-statsd-exporter-0.9.0
prometheus-statsd-exporter: 0.4.0 -> 0.9.0
2019-04-22 23:21:46 +02:00
Bas van Dijk cccc7a93d2 Merge pull request #59828 from basvandijk/prometheus-refactoring
nixos/prometheus: refactored & added more missing options
2019-04-18 13:43:53 +02:00
Bas van Dijk cdd82681b3 nixos/prometheus: add more missing options 2019-04-18 12:53:13 +02:00
Bas van Dijk 285fd3c05a nixos/prometheus: abstract over optional option creation 2019-04-18 11:55:43 +02:00
Bas van Dijk 55ef5d4246 nixos/prometheus: set optional attributes to type types.nullOr
This makes sure that when a user hasn't set a Prometheus option it
won't show up in the prometheus.yml configuration file. This results
in smaller and easier to understand configuration files.
2019-04-17 14:49:09 +02:00
Bas van Dijk 57e5b75f9c nixos/prometheus: filter out the _module attr in a central place
We previously filtered out the `_module` attribute in a NixOS
configuration by filtering it using the option's `apply` function.

This meant that every option that had a submodule type needed to have
this apply function. Adding this function is easy to forget thus this
mechanism is error prone.

We now recursively filter out the `_module` attributes at the place we
construct the Prometheus configuration file. Since we now do the filtering
centrally we don't have to do it per option making it less prone to errors.
2019-04-17 14:08:16 +02:00
Bas van Dijk 4e867661d5 Merge pull request #54691 from thefloweringash/prometheus-ec2
nixos/prometheus: add `ec2_sd_configs` section to `scrape_configs`
2019-04-16 17:33:42 +02:00
Bas van Dijk a913d0891c nixos/prometheus: filter out empty srcape_configs attributes
This results in a smaller prometheus.yml config file.

It also allows us to use the same options for both prometheus-1 and
prometheus-2 since the new options for prometheus-2 default to null
and will be filtered out if they are not set.
2019-04-16 16:06:11 +02:00
Bas van Dijk a23db5db08 nixos/prometheus: add new ec2_sd_config options for prometheus2 2019-04-16 16:04:33 +02:00
Bas van Dijk 0cfeb78bc5 Merge pull request #59685 from basvandijk/remove-notes-prometheus2-rl-1909
nixos/doc: remove prometheus2 notes from the 19.09 release notes
2019-04-16 11:46:01 +02:00
Bas van Dijk ced565b3d3 Merge pull request #59606 from vbgl/dune-1.9.1
dune: 1.9.0 -> 1.9.1
2019-04-16 11:37:32 +02:00
Bas van Dijk e7fadde7a7 nixos/doc: remove prometheus2 notes from the 19.09 release notes
prometheus2 has been backported to 19.03 so it won't be new for 19.09.
2019-04-16 09:47:45 +02:00
Bas van Dijk e138020e8d Merge pull request #59676 from basvandijk/prometheus-pushgateway-module
nixos/prometheus/pushgateway: add module and test
2019-04-16 09:18:34 +02:00
Bas van Dijk d1940beb3a nixos/prometheus/pushgateway: add module and test 2019-04-16 08:09:38 +02:00
Bas van Dijk fd05e3407e Merge pull request #59608 from basvandijk/prometheus-pushgateway-0.8.0
prometheus-pushgateway: 0.7.0 -> 0.8.0
2019-04-15 21:52:58 +02:00
Bas van Dijk b0fbe1df3f prometheus-pushgateway: 0.7.0 -> 0.8.0 2019-04-15 16:12:14 +02:00
Bas van Dijk e5724e8e66 Merge pull request #59514 from basvandijk/elk-7.0.0
elk7: init at 7.0.0
2019-04-15 07:05:13 +02:00
Bas van Dijk 13352f28d2 elk7: init at 7.0.0
This adds the following new packages:

+ elasticsearch7
+ elasticsearch7-oss
+ logstash7
+ logstash7-oss
+ kibana7
+ kibana7-oss
+ filebeat7
+ heartbeat7
+ metricbeat7
+ packetbeat7
+ journalbeat7

The default major version of the ELK stack stays at 6. We should
probably set it to 7 in a next commit.
2019-04-14 21:39:46 +02:00
Bas van Dijk 08b277e0da Merge pull request #56017 from elohmeier/prom-tls
prometheus: add tls_config
2019-04-12 12:57:54 +02:00
Bas van Dijk 1a926b82a8 Merge pull request #59263 from Zimmi48/dune-1.9.0
dune: 1.8.2 -> 1.9.0
2019-04-11 09:07:14 +02:00
Bas van Dijk 38ae3fe584 Merge pull request #59270 from basvandijk/alertmanager-DynamicUser
nixos/prometheus/alertmanager: use DynamicUser instead of nobody
2019-04-10 22:56:17 +02:00
Bas van Dijk cd4486ecc3 nixos/prometheus/alertmanager: use DynamicUser instead of nobody
See issue #55370
2019-04-10 20:38:40 +02:00
Bas van Dijk 08d9cf7ad4 Merge pull request #59264 from basvandijk/alertmanager-0.16.2
alertmanager: 0.15.3 -> 0.16.2
2019-04-10 16:45:18 +02:00
Bas van Dijk 739bdff4a4 nixos/prometheus/alertmanager: use ExecStart instead of script
This results in a simpler service unit which doesn't first have to
start a shell:

  > cat /nix/store/s95nsr8zbkblklanqpkiap49mkwbaq45-unit-alertmanager.service/alertmanager.service
  ...
  ExecStart=/nix/store/4g784lwcy7kp69hg0z2hfwkhjp2914lr-alertmanager-0.16.2-bin/bin/alertmanager \
    --config.file /nix/store/p2c7fyi2jkkwq04z2flk84q4wyj2ggry-checked-config \
    --web.listen-address [::1]:9093 \
    --log.level warn
  ...
2019-04-10 15:03:09 +02:00
Bas van Dijk 18925d0ceb prometheus-alertmanager: 0.15.3 -> 0.16.2 2019-04-10 14:52:31 +02:00
Bas van Dijk ed426e4df8 Merge pull request #59234 from basvandijk/fluentd-1.4.2
fluentd: 1.2.3 -> 1.4.2
2019-04-10 12:47:49 +02:00
Bas van Dijk ad41c1f1c0 fluentd: 1.2.3 -> 1.4.2 2019-04-10 12:46:06 +02:00
Bas van Dijk 2f2e2971d6 Merge pull request #58255 from jbgi/prometheus2
Add Prometheus 2 service in parallel with 1.x version (continuation)
2019-04-09 14:14:18 +02:00
Bas van Dijk b423b73adc nixos/doc: add Prometheus stateDir handling to rl-1909.xml 2019-04-09 13:13:44 +02:00
Bas van Dijk c95179b52f nixos/prometheus: add back the option services.prometheus.dataDir
This is to ensure more backwards compatibility. Note this is not 100%
backwards compatible because we now require dataDir to begin with /var/lib/.
2019-04-09 13:13:34 +02:00
Bas van Dijk a3fb03df3e Merge pull request #59206 from basvandijk/elk-6.7.1
elk: 6.5.1 -> 6.7.1
2019-04-09 13:04:14 +02:00
Bas van Dijk 7062a073e8 elk: 6.5.1 -> 6.7.1 2019-04-09 12:34:01 +02:00
Bas van Dijk 29d7d8f44d nixos/doc: added the Prometheus changes to the 19.09 release notes 2019-04-08 19:39:22 +02:00
Bas van Dijk eed84d1f8d nixos/prometheus: fix indentation and unnecessary parenthesis 2019-04-08 19:14:42 +02:00
Bas van Dijk 13d5f47a84 Merge pull request #59182 from basvandijk/prometheus-2.8.1
prometheus_2: 2.6.0 -> 2.8.1
2019-04-08 19:01:10 +02:00
Bas van Dijk 2a722175cd prometheus_2: 2.6.0 -> 2.8.1
See: https://github.com/prometheus/prometheus/releases/tag/v2.8.1
2019-04-08 18:06:00 +02:00
Bas van Dijk 65fa918adb Merge pull request #59175 from jbgi/generic-prometheus
Expose prometheus generic builder.
2019-04-08 18:03:25 +02:00
Bas van Dijk b6fdd1a0fc prometheus: rename the generic function to buildPrometheus
Since the `generic` function is now exported it should have a less
generic name, pun intended.
2019-04-08 16:40:42 +02:00
Bas van Dijk 394970047e nixos/tests: register the prometheus2 test 2019-04-08 15:24:23 +02:00