Commit Graph
100 Commits
Author SHA1 Message Date
Bas van Dijk 37831d6d35 Merge pull request #67930 from basvandijk/applyPatches
trivial-builders: add the applyPatches function
2019-09-03 08:00:22 +02:00
Bas van Dijk 05393ca217 trivial-builders: add the applyPatches function
applyPatches applies a list of patches to a source directory.

For example to patch nixpkgs you can use:

  applyPatches {
    src = pkgs.path;
    patches = [
      (pkgs.fetchpatch {
        url = "https://github.com/NixOS/nixpkgs/commit/1f770d20550a413e508e081ddc08464e9d08ba3d.patch";
        sha256 = "1nlzx171y3r3jbk0qhvnl711kmdk57jlq4na8f8bs8wz2pbffymr";
      })
    ];
  }
2019-09-02 11:18:52 +02:00
Bas van Dijk 09b1501d7c thanos: 0.6.0 -> 0.6.1 2019-08-28 00:00:14 +02:00
Bas van Dijk cbf76c739a Merge pull request #66728 from symphorien/rust-rls
rls: tie version to rustc's
2019-08-21 16:38:19 +02:00
Bas van Dijk 06734a93e9 rustfmt: fix build on aarch64 2019-08-19 15:23:41 +02:00
Bas van Dijk b9c4bef090 Merge pull request #66713 from basvandijk/rustfmt-from-rust-src
rustfmt: use the src as defined by the git submodule in rust
2019-08-19 15:14:23 +02:00
Bas van Dijk 4e5d4d5509 rustfmt: enable tests 2019-08-19 15:09:15 +02:00
Bas van Dijkandsymphorien dc374218c9 rustfmt: make sure to test rustfmt instead of rustc
Co-Authored-By: symphorien <symphorien@users.noreply.github.com>
2019-08-19 12:54:40 +02:00
Bas van Dijk 16cb2611d9 rustfmt: use the src as defined by the git submodule in rust
This commit makes sure rustc and rustfmt are compatible by setting
rustfmt's src to the rustfmt git submodule as defined in:

https://github.com/rust-lang/rust/tree/1.36.0/src/tools
2019-08-16 12:54:05 +02:00
Bas van Dijk 682e6fafa4 rustPackages.clippy: init at rust-1.36.0 2019-08-16 09:18:32 +02:00
Bas van Dijk fae25242e9 Merge pull request #66327 from basvandijk/parameterizable-nixos-generate-config
nixos-generate-config: enable overriding configuration.nix
2019-08-09 14:39:34 +02:00
Bas van Dijk 810388afd2 nixos-generate-config: enable overriding configuration.nix 2019-08-08 17:00:10 +02:00
Bas van Dijk 69c7aee5fd Merge pull request #66257 from knl/dont-force-hostname-in-sets
Make hostname in tests overridable
2019-08-07 12:12:15 +02:00
Bas van Dijk 9ff408a2a4 Merge pull request #60500 from basvandijk/thanos-init
thanos: init at 0.6.0 & NixOS module
2019-07-28 19:14:55 +02:00
Bas van Dijk 0a59be7136 thanos: 0.5.0 -> 0.6.0 2019-07-28 13:28:27 +02:00
Bas van Dijk 6a59dc35f6 nixos/tests/prometheus-2.nix: increase diskSize of the store machine
This is to fix the following error in the test on aarch64-linux:

store# [  126.911144] thanos[739]: level=error ts=2019-06-16T14:00:26.59870538Z caller=main.go:182 msg="running command failed" err="error executing compaction: first pass of downsampling failed: create dir: mkdir /var/lib/thanos-compact/downsample: no space left on device"
store# [  126.942655] systemd[1]: thanos-compact.service: Main process exited, code=exited, status=1/FAILURE
2019-07-28 13:28:27 +02:00
Bas van Dijk e753322c48 thanos: remove bzr because 0.5.0 apparently doesn't need it anymore
I'll leave in the support for overrideModAttrs because that can be
useful for other go packages.
2019-07-28 13:28:27 +02:00
Bas van Dijk aefb0aa912 thanos: 0.5.0-rc.0 -> 0.5.0 2019-07-28 13:28:27 +02:00
Bas van Dijk dc69b3e6ad nixos/thanos: code style: don't use a space before a colon 2019-07-28 13:28:27 +02:00
Bas van Dijk e32e0e6e02 nixos/thanos: assert that prometheus2 is running and has labels set 2019-07-28 13:28:27 +02:00
Bas van Dijk 7f093a2e8e thanos: don't use URL literals (RFC-0045) 2019-07-28 13:28:27 +02:00
Bas van Dijk 13da811853 nixos/thanos: allow overriding arguments to the thanos subcommands 2019-07-28 13:28:27 +02:00
Bas van Dijk 2d0243c187 thanos: 0.4.0 -> 0.5.0-rc.0 2019-07-28 13:28:27 +02:00
Bas van Dijk ebc65a5f21 nixos/thanos: add module for the thanos service 2019-07-28 13:28:27 +02:00
Bas van Dijk 4a6e47126c thanos: init at 0.4.0 2019-07-28 13:28:27 +02:00
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