Commit Graph
235853 Commits
Author SHA1 Message Date
Matthew Bauer 2c2f6c0b38 nixos/ipfs: only set listenstream when gateway/api is default 2020-06-12 17:15:34 -05:00
Matthew Bauer 982a17a48e nixos/ipfs: always expose sockets 2020-06-12 17:15:34 -05:00
Matthew Bauer fa06d8f961 nixos/ipfs: actually use upstream systemd units 2020-06-12 17:15:34 -05:00
Matthew BauerandFlorian Klink b36ef706fb nixos/ipfs: add startWhenNeeded option
This makes it possible to only start IPFS when needed. So a user’s
IPFS daemon only starts when they actually use it.

A few important warnings though:

  - This probably shouldn’t be mixed with services.ipfs.autoMount
    since you want /ipfs and /ipns aren’t activated like this
  - ipfs.socket assumes that you are using ports 5001 and 8080 for the
    API and gateway respectively. We could do some parsing to figure
    out what is in apiAddress and gatewayAddress, but that’s kind of
    difficult given the nonstandard address format.
  - Apparently? this doesn’t work with the --api commands used in the tests.

Of course you can always start automatically with startWhenNeeded =
false, or just running ‘systemctl start ipfs.service’.

Tested with the following test (modified from tests/ipfs.nix):

  import ./make-test-python.nix ({ pkgs, ...} : {
    name = "ipfs";

    nodes.machine = { ... }: {
      services.ipfs = {
        enable = true;
        startWhenNeeded = true;
      };
    };

    testScript = ''
      start_all()

      machine.wait_until_succeeds("ipfs id")
      ipfs_hash = machine.succeed("echo fnord | ipfs add | awk '{ print $2 }'")

      machine.succeed(f"ipfs cat /ipfs/{ipfs_hash.strip()} | grep fnord")
    '';
  })

Fixes #90145

Update nixos/modules/services/network-filesystems/ipfs.nix

Co-authored-by: Florian Klink <flokli@flokli.de>
2020-06-12 17:15:27 -05:00
John Ericson 2fc097ad74 Merge pull request #90204 from Ericson2314/fix-perl-pkg-config
perlPackages.ExtUtilsPkgConfig: Fix build
2020-06-12 18:01:43 -04:00
Jonathan Ringer 3ba9e643fd python3Packages.seekpath: fix build, use github for tests 2020-06-12 13:57:27 -07:00
Jonathan Ringer dd35d3b655 python3Packages.vmprof: fix build, mark not broken 2020-06-12 13:53:22 -07:00
Jonathan Ringer 529c2f192e python3Packages.sseclient: fix tests 2020-06-12 13:49:40 -07:00
Vladyslav M 8f8e34cb0c Merge pull request #89877 from r-ryantm/auto-update/watchexec
watchexec: 1.13.0 -> 1.13.1
2020-06-12 23:44:03 +03:00
Ryan Mulligan 2a6cc3f3f2 Merge pull request #90106 from r-ryantm/auto-update/piper
piper: 0.4 -> 0.5
2020-06-12 13:41:03 -07:00
Bruno Bigras 619f7d8c74 broot: 0.13.6 -> 0.15.1 2020-06-12 16:39:02 -04:00
Jonathan Ringer be5804ac9e python2Packages.validators: disable url tests 2020-06-12 13:31:50 -07:00
Jonathan Ringer 38397dc9ea python3Packages.pylint-plugin-utils: fix build 2020-06-12 13:26:32 -07:00
Jonathan Ringer 8c3e9313c9 gns3-server: fix build 2020-06-12 13:20:18 -07:00
Frederik Rietdijk 98f95ef9c4 blender: fix build with python 3.8
Since Python 3.8 an `m` is no longer added when pymalloc is used.
https://bugs.python.org/issue36707
2020-06-12 22:00:09 +02:00
Peter Simons 2218618bb7 Merge pull request #90062 from steve-chavez/unbreak-hasql-noti
haskellPackages.hasql-notifications: unbreak
2020-06-12 21:41:43 +02:00
Jonathan Ringer 503f9f74a0 python3Packages.pyx: fix src pname 2020-06-12 12:36:34 -07:00
Ben Darwin a6d8a12e4e python3Packages.duecredit: init at 0.8.0 2020-06-12 12:33:44 -07:00
Ben Darwin 4c2504a6bf python3Packages.citeproc-py: init at 0.5.1 2020-06-12 12:33:44 -07:00
Ben Darwin a113aa5b6b python3Packages.rnc2rng: init at 2.6.4 2020-06-12 12:33:44 -07:00
Sirio Balmelli 803ef3f367 piccata 1.0.1 -> 2.0.0
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2020-06-12 12:30:53 -07:00
Matthew Bauer ed6e598747 Merge pull request #89112 from eadwu/musl/libc-arch
musl: include libc.musl-$arch
2020-06-12 14:29:22 -05:00
Raphael Borun Das Gupta f0cf89278e pytest-rerunfailures: add das-g as maintainer
(cherry picked from commit 46821ede459fef99161805aa4000bc7ded25675c)
2020-06-12 12:26:39 -07:00
John Ericson 2a8b8f6593 release-lib: Avoid filtering twice
We were using `supportedMatches` both when getting the list of
platforms, and before `genAttrs` the derivation for each. Now we just
filter the second time,
2020-06-12 15:23:21 -04:00
Raphael Borun Das Gupta 35a6dc658d python3Packages.pytest-rerunfailures: 8.0 -> 9.0
fixes NixOS/nixpkgs#89508

(cherry picked from commit 53481e4bf033e50f41e4a9bb9bfe6a4ff2bb6a5d)
2020-06-12 12:13:14 -07:00
Michael Raskin 6541ef3267 Merge pull request #90186 from 7c6f434c/fix-mplayer
mplayer: fix build by forcing -lfreetype
2020-06-12 19:12:29 +00:00
ajs124 5460d53af1 firefox-beta-bin: 77.0b7 -> 78.0b2 (security)
PR #89438.
2020-06-12 21:10:12 +02:00
ajs124 51d0d03b8c firefox-esr-68: 68.8.0esr -> 68.9.0esr (security)
PR #89438.
2020-06-12 21:10:12 +02:00
ajs124 1bc740008b firefox-bin: 76.0 -> 77.0.1 (security)
PR #89438.
2020-06-12 21:10:11 +02:00
Jörg Thalheim cc7b028202 Merge pull request #90189 from volth/cental.maven.org
treewide: central.maven.org -> repo1.maven.org
2020-06-12 20:06:02 +01:00
Jeremy Schlatter a3b63dbc72 python3Packages.iterm2: init at 1.14 2020-06-12 11:58:19 -07:00
Jeremy Schlatter 261912e071 maintainers: add jeremyschlatter 2020-06-12 11:58:19 -07:00
Doron Behar 01d4e2fe33 treewide: use ffmpeg_3 explicitly if not wanted otherwise
After making `ffmpeg` point to the latest `ffmpeg_4`, all packages that
used `ffmpeg` without requiring a specific version now use ffmpeg_3
explicitly so they shouldn't change.
2020-06-12 11:55:31 -07:00
Doron Behar 8e1dcea3d5 ffmpeg: default to ffmpeg_4 2020-06-12 11:55:31 -07:00
Jörg Thalheim 8df5edc153 Merge pull request #87178 from hax404/teeworlds-module-test
nixos/{modules,tests}/teeworlds: init
2020-06-12 19:52:06 +01:00
Jonathan Ringer 82036a6090 python3Packages.libagent: use github for tests 2020-06-12 11:42:20 -07:00
Jonathan Ringer 619842581a Revert "python3Packages.PySDL2: 0.9.6 -> 0.9.7"
This reverts commit 738424b7ea.

patches need to be updated to support new version
2020-06-12 11:40:55 -07:00
Jonathan Ringer b9ace1fb05 python3Packages.uvicorn: 0.11.2 -> 0.11.5 2020-06-12 11:29:06 -07:00
Jonathan Ringer db59d205fe python3Packages.caldav: use github, fix build 2020-06-12 11:22:39 -07:00
John Ericson 41dc003692 perlPackages.ExtUtilsPkgConfig: Fix build
Fixes #90084
2020-06-12 18:22:37 +00:00
Jonathan Ringer 8a67181b7c python3Packages.scikitimage: add missing tifffile dep 2020-06-12 11:06:22 -07:00
Jonathan Ringer 14eb90df78 python3Packages.kombu: fix tests 2020-06-12 11:05:50 -07:00
Edmund Wu 107f7ba026 musl: include libc.musl-$arch 2020-06-12 14:01:43 -04:00
Jonathan Ringer ab1be09c94 python3Packages.pytest-doctestplus: fix tests 2020-06-12 10:40:43 -07:00
Jonathan Ringer 89307ea34d python3Packages.jaraco_functools: fix build 2020-06-12 10:33:39 -07:00
Cole Mickens 3d74684847 pythonPackages.bravia-tv: 1.0.1 -> 1.0.5 2020-06-12 10:24:26 -07:00
Frederik Rietdijk 4087d3fe41 python: don't use optimizations on Darwin
Also, don't use autoreconfHook on Darwin with Python 3.
Darwin builds are still impure and fail with

    ld: warning: directory not found for option '-L/nix/store/6yhj9djska835wb6ylg46d2yw9dl0sjb-configd-osx-10.8.5/lib'
    ld: warning: directory not found for option '-L/nix/store/6yhj9djska835wb6ylg46d2yw9dl0sjb-configd-osx-10.8.5/lib'
    ld: warning: object file (/nix/store/0lsij4jl35bnhqhdzla8md6xiswgig5q-Libsystem-osx-10.12.6/lib/crt1.10.6.o) was built for newer OSX version (10.12) than being linked (10.6)
    DYLD_LIBRARY_PATH=/private/tmp/nix-build-python3-3.8.3.drv-0/Python-3.8.3 ./python.exe -E -S -m sysconfig --generate-posix-vars ;\
    if test $? -ne 0 ; then \
            echo "generate-posix-vars failed" ; \
            rm -f ./pybuilddir.txt ; \
            exit 1 ; \
    fi
    /nix/store/dsb7d4dwxk6bzlm845z2zx6wp9a8bqc1-bash-4.4-p23/bin/bash: line 5: 72015 Killed: 9               DYLD_LIBRARY_PATH=/private/tmp/nix-build-python3-3.8.3.drv-0/Python-3.8.3 ./python.exe -E -S -m sysconfig --generate-posix-vars
    generate-posix-vars failed
    make: *** [Makefile:592: pybuilddir.txt] Error 1
2020-06-12 18:29:08 +02:00
Graham Christensen 5a17473f0a Merge pull request #90192 from kraem/kraem/pkgs/facetimehd/remove-nixpkgs-patch
facetimehd: remove patch in nixpkgs, patched upstream
2020-06-12 11:46:35 -04:00
Anderson Torres 184ecdbf0f Merge pull request #89931 from OPNA2608/update-palemoon-28.10.0
palemoon: 28.9.3 -> 28.10.0
2020-06-12 11:40:01 -03:00
volth 54c4223e55 treewide: central.maven.org -> repo1.maven.org 2020-06-12 14:26:08 +00:00