Commit Graph

103577 Commits

Author SHA1 Message Date
Austin Butler
9e9527b1b4 python3Packages.poetry: 1.1.4 -> 1.1.5 2021-04-11 12:46:54 +02:00
Fabian Affolter
1dee5f4388 python3Packages.transformers: fix build 2021-04-11 12:46:30 +02:00
sterni
2140791f9b
ocamlPackages.janeStreet{,_0_9_0}: join the ocamlPackages fix point, allowing overriding to work as expected (#113696)
* ocamlPackages.janeStreet_0_9_0: join the ocamlPackages fix point

Internal dependencies in the janeStreet sets were always taken from the
own rec attribute set. While this is pretty simple and convenient, it
has the disadvantage that it doesn't play nice with overriding: If you'd
override an attribute in a janeStreet set previously, it would be
changed when referenced directly, but the other packages in that
janeStreet set still would use the original, non-overridden version of
the derivation.

This is easily fixed by passing janeStreet_0_9_0 itself from the fix
point of ocamlPackages and using it to reference the dependencies.

Example showing it now works as expected:

test-overlay.nix:

    self: super: {
      ocamlPackages = super.ocamlPackages.overrideScope (old: _: {
        janeStreet_0_9_0 = old.janeStreet_0_9_0 // {
          base = old.janeStreet_0_9_0.base.overrideAttrs (_: {
            meta.broken = true;
          });
        };
      });
    }

nix-repl> (import ./. {
  overlays = [ (import ./test-overlay.nix) ];
}).ocamlPackages.janeStreet_0_9_0.stdio

error: Package ‘ocaml4.10.0-base-0.9.4’ in /home/lukas/src/nix/nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage.nix:6 is marked as broken, refusing to evaluate.

a) To temporarily allow broken packages, you can use an environment variable
   for a single invocation of the nix tools.

     $ export NIXPKGS_ALLOW_BROKEN=1

b) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

* ocamlPackages.janeStreet: take part in fixpoint for OCaml >= 4.08

This change makes overrides to the janeStreet set work as expected by
making the janeStreet set take part in the ocamlPackages fixpoint for
janeStreet 0.14, i. e. OCaml >= 4.08

* ocamlPackages.janeStreet: take part in fixpoint for OCaml == 4.07

This change makes overrides to the janeStreet set work as expected by
making the janeStreet set take part in the ocamlPackages fixpoint for
janeStreet 0.12, i. e. OCaml == 4.07

* ocamlPackages.janeStreet: take part in fixpoint for OCaml < 4.07

This change makes overrides to the janeStreet set work as expected by
making the janeStreet set take part in the ocamlPackages fixpoint for
janeStreet 0.11, i. e. OCaml < 4.07

* ocamlPackages.janeStreet: remove self - super distinction

Previously, we inherited non-janestreet ocaml dependencies from super
and janestreet dependencies from self which always was super.janeStreet.

This behavior is however not really what we want due to liftJaneStreet:
Users and other packages will use ocamlPackages.base etc. instead of
ocamlPackages.janeStreet.base and the like. Consequently they also would
override the top-level attributes which would mean that other janestreet
packages would not pick up on it however.

As a consequence however, overriding ocamlPackages.janeStreet.base
doesn't work. Since this was never possible, I don't think this is an
issue. It is probably a good idea to deprecate that set anyways and
printing a warning when it is used via trace.

janeStreet_0_9_0 is unchanged as the disticniton between self and super
makes sense for it.

Below is an example showing how overriding would work from an user's
perspective:

test-overlay.nix:

    self: super: {
      ocamlPackages = super.ocamlPackages.overrideScope (old: _: {
        base = old.base.overrideAttrs (_: {
          meta.broken = true;
        });
      });
    }

nix-repl> (import ./. { overlays = [ (import ./test-overlay.nix) ]; }).ocamlPackages.
stdio
error: Package ‘ocaml4.10.0-base-0.14.0’ in /home/lukas/src/nix/nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage_0_14.nix:12 is marked as broken, refusing to evaluate.

a) To temporarily allow broken packages, you can use an environment variable
   for a single invocation of the nix tools.

     $ export NIXPKGS_ALLOW_BROKEN=1

b) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
2021-04-11 12:26:10 +02:00
Doron Behar
cd5b07f01e
Merge pull request #112713 from r-ryantm/auto-update/python3.7-datadog
python37Packages.datadog: 0.39.0 -> 0.40.0
2021-04-11 08:47:50 +00:00
Vincent Laporte
0062afc050 ocamlPackages.printbox: 0.4 → 0.5 2021-04-11 10:10:38 +02:00
Martin Weinelt
7644480555
python3Packages.snitun: disable failing test on darwin (#119009)
The upstream advertises this package as "OS independent", but from
issues it is clear they cannot test it on MacOS. So we simply disable
this test.

```
______________________ test_peer_listener_timeout[pyloop] ______________________

raise_timeout = None
peer_manager = <snitun.server.peer_manager.PeerManager object at 0x10a4a6df0>
peer_listener = <snitun.server.listener_peer.PeerListener object at 0x10a4a6a30>
test_client_peer = Client(reader=<StreamReader exception=ConnectionResetError(54, 'Connection reset by peer') transport=<_SelectorSocketT...by peer') transport=<_SelectorSocketTransport closed fd=19>>>, close=<asyncio.locks.Event object at 0x10909ee50 [set]>)

    async def test_peer_listener_timeout(
        raise_timeout, peer_manager, peer_listener, test_client_peer
    ):
        """Run a full flow of with a peer."""
        valid = datetime.utcnow() + timedelta(days=1)
        aes_key = os.urandom(32)
        aes_iv = os.urandom(16)
        hostname = "localhost"
        fernet_token = create_peer_config(valid.timestamp(), hostname, aes_key, aes_iv)

        crypto = CryptoTransport(aes_key, aes_iv)

        test_client_peer.writer.write(fernet_token)
        await test_client_peer.writer.drain()

        with pytest.raises(asyncio.IncompleteReadError):
>           token = await test_client_peer.reader.readexactly(32)

tests/server/test_listener_peer.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/dpa7p7v00xvr26dv2myh3k5p1zkagqsm-python3-3.8.5/lib/python3.8/asyncio/streams.py:723: in readexactly
    await self._wait_for_data('readexactly')
/nix/store/dpa7p7v00xvr26dv2myh3k5p1zkagqsm-python3-3.8.5/lib/python3.8/asyncio/streams.py:517: in _wait_for_data
    await self._waiter
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <_SelectorSocketTransport closed fd=19>

    def _read_ready__data_received(self):
        if self._conn_lost:
            return
        try:
>           data = self._sock.recv(self.max_size)
E           ConnectionResetError: [Errno 54] Connection reset by peer
```
2021-04-11 02:18:59 -04:00
Ryan Mulligan
04dd46c650
Merge pull request #119065 from r-ryantm/auto-update/openfpgaloader
openfpgaloader: 0.2.5 -> 0.2.6
2021-04-10 21:42:52 -07:00
Dmitry Kalinkin
79e46fe6b0
Merge pull request #118967 from veprbl/pr/rivet_3_1_4
rivet: 3.1.3 -> 3.1.4
2021-04-11 00:29:33 -04:00
Ryan Mulligan
afca74b711
Merge pull request #119027 from r-ryantm/auto-update/jbang
jbang: 0.69.2 -> 0.70.0
2021-04-10 17:30:19 -07:00
Ryan Mulligan
57223384f8
Merge pull request #118969 from r-ryantm/auto-update/ciao
ciao: 1.19.0 -> 1.20.0
2021-04-10 17:27:42 -07:00
Ryan Mulligan
2c8e88dabe
Merge pull request #118962 from r-ryantm/auto-update/cargo-deny
cargo-deny: 0.9.0 -> 0.9.1
2021-04-10 16:01:53 -07:00
Fabian Affolter
089908b9db
Merge pull request #119033 from r-ryantm/auto-update/lazygit
lazygit: 0.26.1 -> 0.27.3
2021-04-11 00:35:19 +02:00
Fabian Affolter
0b78980d67 python3Packages.pyenvisalink: init at 4.1 2021-04-10 15:31:56 -07:00
Mario Rodas
27d7c671af
Merge pull request #118972 from r-ryantm/auto-update/cloud-nuke
cloud-nuke: 0.1.27 -> 0.1.28
2021-04-10 12:31:55 -05:00
R. RyanTM
822c94a557 openfpgaloader: 0.2.5 -> 0.2.6 2021-04-10 17:24:56 +00:00
Sandro
a73020b2a1
Merge pull request #119020 from dotlambda/splinter-fix
pythonPackages.splinter: fix build
2021-04-10 18:42:38 +02:00
Sandro
42f3ca2467
Merge pull request #119017 from fabaff/bump-pykwalify
python3Packages.pykwalify: 1.7.0 -> 1.8.0
2021-04-10 18:41:58 +02:00
Sandro
baf5e666c6
Merge pull request #118957 from lovesegfault/pynvim-0.4.3
python3Packages.pynvim: 0.4.2 -> 0.4.3
2021-04-10 18:41:07 +02:00
Sandro
64a8f2b8e5
Merge pull request #118951 from kalbasit/update-west
python3Packages.west: 0.8.0 -> 0.10.1
2021-04-10 18:40:52 +02:00
Gabriel Ebner
cb6a191c65
Merge pull request #119040 from r-ryantm/auto-update/libqalculate
libqalculate: 3.17.0 -> 3.18.0
2021-04-10 18:30:20 +02:00
Sandro
38b7f6b9c2
Merge pull request #119022 from veprbl/pr/pythia_8_304
pythia: 8.303 -> 8.304
2021-04-10 17:09:22 +02:00
Mario Rodas
763b66fef5
Merge pull request #119013 from r-ryantm/auto-update/go-toml
go-toml: 1.8.1 -> 1.9.0
2021-04-10 10:03:14 -05:00
Sandro
937e6da44e
Merge pull request #118984 from Tomahna/metals
metals: 0.10.0 -> 0.10.1
2021-04-10 16:32:15 +02:00
Sandro
15435a234c
Merge pull request #118980 from r-ryantm/auto-update/dbmate
dbmate: 1.11.0 -> 1.12.0
2021-04-10 16:31:28 +02:00
R. RyanTM
723a8da830 libqalculate: 3.17.0 -> 3.18.0 2021-04-10 13:36:16 +00:00
R. RyanTM
6ed757b460 lazygit: 0.26.1 -> 0.27.3 2021-04-10 13:15:23 +00:00
R. RyanTM
eff2b5d29f jbang: 0.69.2 -> 0.70.0 2021-04-10 12:26:23 +00:00
Martin Weinelt
79fa31eff9
Merge pull request #119004 from mweinelt/home-assistant
home-assistant: 2021.4.2 -> 2021.4.3
2021-04-10 14:11:01 +02:00
Dmitry Kalinkin
9501203dc1
pythia: 8.303 -> 8.304 2021-04-10 08:05:43 -04:00
Robert Schütz
ecc1a0ff70 pythonPackages.splinter: fix build
Add six to propagatedBuildInputs.
Also enable tests and add dotlambda to maintainers.
2021-04-10 13:57:22 +02:00
Fabian Affolter
212244cd08 python3Packages.pykwalify: 1.7.0 -> 1.8.0 2021-04-10 13:32:01 +02:00
Dmitry Kalinkin
c32ba28e67
github-runner: fix eval (#119011) 2021-04-10 07:14:10 -04:00
R. RyanTM
79ea4d0e0f go-toml: 1.8.1 -> 1.9.0 2021-04-10 11:09:57 +00:00
Vincent Haupert
f4af2f267a
nixos/github-runner: init at v2.277.1 (#116775)
* github-runner: init at 2.277.1

* nixos/github-runner: initial version

* nixos/github-runner: add warning if tokenFile in Nix store

* github-runner: don't accept unexpected attrs

* github-runner: formatting nits

* github-runner: add pre and post hooks to checkPhase

* nixos/github-runner: update ExecStartPre= comment

* nixos/github-runner: adapt tokenFile option description

Also note that not only a change to the option value will trigger a
reconfiguration but also modifications to the file's content.

* nixos/github-runner: remove mkDefault for DynamicUser=

* nixos/github-runner: create a parent for systemd dirs

Adds a parent directory "github-runner/" to all of the systemd lifecycle
directories StateDirectory=, RuntimeDirectory= and LogDirectory=.

Doing this has two motivations:

1. Something like this would required if we want to support multiple
   runners configurations. Please note that this is already possible
   using NixOS containers.
2. Having an additional parent directory makes it easier to remap
   any of the directories. Without a parent, systemd is going to
   complain if, for example, the given StateDirectory= is a symlink.

* nixos/github-runner: use specifier to get abs runtime path

* nixos/github-runner: use hostname as default for option `name`

Until now, the runner registration did not set the `--name` argument if
the configuration option was `null`, the default for the option.
According to GitHub's documentation, this instructs the registration
script to use the machine's hostname.

This commit causes the registration to always pass the `--name` argument
to the runner configuration script. The option now defaults to
`networking.hostName` which should be always set on NixOS.

This change becomes necessary as the systemd service name includes the
name of the runner since fcfa809 and, hence, expects it to be set. Thus,
an unset `name` option leads to an error.

* nixos/github-runner: use types.str for `name` option

Forcing a `name` option to comply with a pattern which could also be
used as a hostname is probably not required by GitHub.

* nixos/github-runner: pass dir paths explicitly for ExecStartPre=

* nixos/github-runner: update variable and script naming

* nixos/github-runner: let systemd choose the user/group

User and group naming restrictions are a complex topic [1] that I don't
even want to touch. Let systemd figure out the username and group and
reference it in our scripts through the USER environment variable.

[1] https://systemd.io/USER_NAMES/

* Revert "nixos/github-runner: use types.str for `name` option"

The escaping applied to the subdirectory paths given to StateDirectory=,
RuntimeDirectory= and LogsDirectory= apparently doesn't use the same
strategy that is used to escape unit names (cf. systemd-escape(1)). This
makes it unreasonably hard to construct reliable paths which work for
StateDirectory=/RuntimeDirectory=/LogsDirectory= and ExecStartPre=.

Against this background, I decided to (re-)apply restrictions to the
name a user might give for the GitHub runner. The pattern for
`networking.hostName` seems like a reasonable choice, also as its value
is the default if the `name` option isn't set.

This reverts commit 193ac67ba337990c22126da24a775c497dbc7e7d.

* nixos/github-runner: use types.path for `tokenFile` option

* nixos/github-runner: escape options used as shell arguments

* nixos/github-runner: wait for network-online.target

* github-runner: ignore additional online tests
2021-04-10 10:17:10 +00:00
Martin Weinelt
cd6cc34d41 python3Packages.python-smarttub: 0.0.21 -> 0.0.23 2021-04-10 12:04:21 +02:00
Martin Weinelt
977132fe59 python3Packages.devolo-home-control-api: 0.17.1 -> 0.17.3 2021-04-10 12:02:00 +02:00
Martin Weinelt
8cbaf51809
Merge pull request #118943 from mweinelt/home-assistant
home-assistant: 2021.4.1 -> 2021.4.2
2021-04-10 11:58:58 +02:00
Kevin Rauscher
92f5917c43
metals: 0.10.0 -> 0.10.1 2021-04-10 10:07:11 +02:00
R. RyanTM
3d3bad9ff3 dbmate: 1.11.0 -> 1.12.0 2021-04-10 07:49:58 +00:00
Doron Behar
ecd2d63dfd
Merge pull request #118975 from r-ryantm/auto-update/cpp-utilities
cpp-utilities: 5.10.1 -> 5.10.2
2021-04-10 07:47:41 +00:00
R. RyanTM
ddccf4272c cpp-utilities: 5.10.1 -> 5.10.2 2021-04-10 07:27:35 +00:00
R. RyanTM
e8a7bf4e2d cloud-nuke: 0.1.27 -> 0.1.28 2021-04-10 07:03:23 +00:00
R. RyanTM
f549f4c86d ciao: 1.19.0 -> 1.20.0 2021-04-10 06:44:18 +00:00
Dmitry Kalinkin
5bb883a1c0
rivet: 3.1.3 -> 3.1.4 2021-04-10 02:34:23 -04:00
R. RyanTM
b20d30e606 cargo-deny: 0.9.0 -> 0.9.1 2021-04-10 06:07:26 +00:00
R. RyanTM
85e62de17b
bazel-kazel: 0.2.1 -> 0.2.2 (#118959) 2021-04-09 22:52:24 -07:00
Wael M. Nasreddine
f3eddda1fb
python3Packages.west: 0.8.0 -> 0.10.1 2021-04-09 22:34:07 -07:00
Bernardo Meurer
debd8ed78f
python3Packages.pynvim: 0.4.2 -> 0.4.3 2021-04-09 22:08:38 -07:00
Ryan Mulligan
9d42670134
Merge pull request #117700 from r-ryantm/auto-update/python3.8-manhole
python38Packages.manhole: 1.6.0 -> 1.7.0
2021-04-09 20:53:02 -07:00
Ryan Mulligan
dd7dc1b724
Merge pull request #118473 from r-ryantm/auto-update/async-profiler
async-profiler: 1.8.4 -> 1.8.5
2021-04-09 20:50:02 -07:00