Commit Graph

101085 Commits

Author SHA1 Message Date
Franz Pletz
8e19dc565e
pythonPackages.slixmpp: 1.2.1 -> 1.2.4.post1 2017-02-12 15:57:34 +01:00
Bjørn Forsman
824d82fa0f nixos/geoip-updater: new service
The GeoIP databases from MaxMind have no stable URLs and change every
month (or so). Our current method of packaging these database in Nix and
playing catch-up with ever-changing file hashes is a bad idea. For
instance, it makes it impossible to realize old NixOS configurations.

This patch adds a NixOS service that periodically updates the GeoIP
databases in /var/lib/geoip-databases. Moving NixOS modules over can be
done in later patches.

I tried adding MD5 check, but not all databases have them, so i skipped
it. We are downloading over HTTPS though, it should be good. I also
tried adding zip support, but the first zip file I extracted had a
different filename inside than the archive name, which breaks an
assumption in this service, so I skipped that too.

Changes v9 -> v10:
  - Pass "--max-time" to curl to set upper bound on downloads (ensures
    no indefinite hanging if there's problem with networking).
    Timeout for network connectivity check: 60s.
    Timeout for geoip database (each): 15m.

Changes v8 -> v9:
  - Mention the random timer delay in the documentation for the
    'interval' option.

Changes v7 -> v8:
  - Add "RemainAfterExit=true" for the setup service, so it won't be
    restarted needlessly. (Thanks @danbst!)

Changes v6 -> v7:
  - Add --skip-existing flag to geoip-updater, which skips updating
    existing database files. Pass that flag when we run the service on
    boot (and on any NixOS configuration change).
    (IMHO, this is somewhat a workaround for systemd persistent timers
    not being triggered immediately when a timer has never expired
    before. But it does have the nice side effect of ensuring that the
    installed databases always correspond to the configured ones, since
    the service is now always run after configuration changes.)

Changes v5 -> v6:
  - Update database files atomically (per DB)
  - If a database is removed from the configuration, it'll be removed
    from /var/lib/geoip-databases too (on next run).
  - Add NixOS module assertion so that if user inputs non- .gz or .xz
    file there will be a build time error instead of runtime.
  - Run updater as user "nobody" instead of "root".
  - Rename NixOS service from "geoip-databases" to "geoip-updater".
  - Drop RemainAfterExit, or else the timer won't trigger the unit.
  - Bring back "curl --fail", or else we won't catch and log curl
    failures.

Changes v4 -> v5:
  - Add "GeoLite2-City.mmdb.gz" to default database list.

Changes v3 -> v4:
  - Remove unneeded geoip-updater-setup.service after adding
    'wantedBy = [ "multi-user.target" ]' directly to
    geoip-updater.service
  - Drop unneeded "Service" name from service descriptions.

Changes v2 -> v3:
  - Network may be down when starting from a cold boot, so try a few
    times. Possibly, if using systemd-networkd, it'll pass on the first
    try. But with default DHCP on NixOS, the service is started before
    hostnames can be resolved and thus we need a few extra seconds.
  - Add error handling and mark service as failed if fatal error.
  - Add proper syslog log levels.
  - Add RandomizedDelaySec=3600 to the timer to not put high load on the
    MaxMind servers. Suggested by @Mic92.
  - Set RemainAfterExit on geoip-updater.service instead of
    geoip-updater-setup.service. (The latter is only a proxy that pulls
    in the former service).

Changes v1 -> v2:
From Данило Глинський (Danylo Hlynskyi) <abcz2.uprola@gmail.com>:
  nixos/geoip-databases: add `databases` option and fix initial setup

  There were two great issues when using this service:
  - When you just enable service, databases aren't downloaded, they are
    downloaded when timer triggers. Fixed this with automatic download on
    first system activation.
  - When there is no internet, updater outputs nothing to logs, which is
    IMO misbehavior. Fixed this with removing `--fail` option, better be
    explicit here.
2017-02-12 15:07:34 +01:00
Tuomas Tynkkynen
9e04b57dde nixos top-level: Add 'dtbs' symlink when kernel uses device trees
Currently e.g. extlinux-conf-builder.sh uses
`readlink -m "$toplevel/kernel/../dtbs"` to figure out the directory.
That is obscenely ugly.
2017-02-12 15:47:49 +02:00
Graham Christensen
4f34e030a5 Merge pull request #22677 from grahamc/drop-kdm-kde4-modules
Drop kdm and kde4 modules
2017-02-12 08:36:33 -05:00
Vladimír Čunát
3348905cde
xorg-server: major bump 1.18.4 -> 1.19.1
I encountered no problems with it.  Nvidia binary drivers are tested,
and AMD ones now both set `abiCompat` to use older server versions.
2017-02-12 13:24:44 +01:00
Vladimír Čunát
c5c0f63320
xorg xf86-video-qxl: 0.1.3 -> 0.1.5 2017-02-12 13:10:51 +01:00
Vladimír Čunát
d4b8737e00
xorg: add xf86-video-{sisusb,sunleo}
They might be useless, but they build :-)
2017-02-12 13:07:55 +01:00
Vladimír Čunát
53600eae3d
xorg xf86-input-libinput: 0.19.1 -> 0.23.0 2017-02-12 13:01:24 +01:00
Vladimír Čunát
e970b8e8df
xorg xf86-input-evdev: 2.10.3 -> 2.10.5 2017-02-12 13:00:37 +01:00
Vladimír Čunát
ffefd83897
xorg xf86-video-*: bump drivers that seem unused
I verified they build, at least with xorg-server-1.19.1.
2017-02-12 12:57:42 +01:00
Christoph Hrdinka
a7ca114545
libretro: add mGBA core
Closes #22618.
2017-02-12 12:38:20 +01:00
Tobias Pflug
9960f7e9f8 flow: 0.37.4 -> 0.39.0 2017-02-12 11:41:47 +01:00
Franz Pletz
5b1a1b0e50
pythonPackages.afew: 2016-02-29 -> 2017-02-08
Failed to build because sha256 of the source tarball changed.
2017-02-12 11:32:57 +01:00
Frederik Rietdijk
543721d766 Revert "pythonPackages.argparse: only for Python < 2.7"
Mass-rebuild, goes into staging.

This reverts commit bee23d7dfc.
2017-02-12 11:27:13 +01:00
Vincent Laporte
af9857ef47 proj: disable tests on 32 bit 2017-02-12 10:00:24 +00:00
Frederik Rietdijk
bee23d7dfc pythonPackages.argparse: only for Python < 2.7 2017-02-12 10:28:00 +01:00
Rob Vermaas
a74d1594f1
Make azure-mgmt-... work with requests 2.11.x. We should update the azure python packages, however, that is a much bigger effort. This is needed to make sure nixops keeps working with Azure.
(cherry picked from commit 4eb92c5c64)
2017-02-12 09:24:13 +00:00
Alexander V. Nikolaev
9ed445a0f7 wineUnstable: 2.0 -> 2.1 2017-02-12 11:23:48 +02:00
Rob Vermaas
c07f1589bf
Make azure-mgmt-resource work with requests 2.11.x. We should update the azure python packages, however, that is a much bigger effort. This is needed to make sure nixops keeps working with Azure.
(cherry picked from commit 81f2bde0a2)
2017-02-12 09:11:15 +00:00
Benjamin Staffin
0688fdfc05 Merge pull request #22694 from changlinli/bfg
bfg-repo-cleaner: init at 1.12.15
2017-02-12 01:55:41 -05:00
Changlin Li
f6dd263d42 bfg-repo-cleaner: init at 1.12.15 2017-02-12 01:53:08 -05:00
Peter Hoeg
6b2ea7ec6e diskscan: init at 0.19 2017-02-12 03:51:13 +01:00
Shea Levy
6651c72df1 proofgeneral_HEAD: Bump 2017-02-11 21:01:56 -05:00
Franz Pletz
e9a5ec099e
wget: 1.19 -> 1.19.1
Fixes build on darwin.

Fixes #22595.
2017-02-12 02:52:25 +01:00
Franz Pletz
5e599035f4
libidn2: fix darwin build
cc #22595
2017-02-12 02:31:41 +01:00
Ricardo M. Correia
123cbd40c2 raspberryPi boot loader: don't remove xx-initrd files
The Raspberry Pi boot loader was deleting all xx-initrd text files
(which simply contain the path to the actual initrd files) just after
having created them. The code was actually trying to delete real,
obsolete initrd files, which are named <hash>-initrd-initrd (after path
cleaning), but the glob was catching the other files as well.
2017-02-12 02:48:57 +02:00
Ricardo M. Correia
c19b17d14f raspberryPi boot loader: fix booting Raspberry Pi 3
The Raspberry Pi 3 seems to need the .DTB file when booting the kernel,
so we must copy it to /boot when installing a new kernel.
2017-02-12 02:48:57 +02:00
Vincent Laporte
0045f932bb proj: 4.9.2 -> 4.9.3 2017-02-11 23:37:59 +00:00
Peter Simons
35d06e947f python-packages: bump osc to fix bug with NixOS's default $PAGER setting 2017-02-11 23:36:36 +01:00
Thomas Tuegel
9eda8f7857 Merge pull request #22675 from FRidh/audacious
Audacious: updates and name change Qt5 version
2017-02-11 16:34:17 -06:00
Jude Taylor
c3e3b6a19a
nvidia-x11: fix parallel building variable name 2017-02-11 14:29:37 -08:00
Will Dietz
947c26972b LLVM: Fix licensing metadata, closes #22679. (#22681)
* All projects are available under NCSA license,
  other than dragonegg.
* "Runtime" projects are dual-licensed under
  both NCSA and MIT:
  libc++, libc++abi, compiler-rt
* I don't mention MIT for compiler-rt as
  we only build it as part of LLVM.
2017-02-11 23:13:29 +01:00
Profpatsch
5b2a71fa25 droopy: init at 20160830 (#22499) 2017-02-11 23:06:17 +01:00
Graham Christensen
3684b6b52c Merge pull request #22682 from xwvvvvwx/update-spotify
spotify: 1.0.47.13 -> 1.0.49.125
2017-02-11 16:34:47 -05:00
David Terry
cb4e8919c3 spotify: 1.0.47.13 -> 1.0.49.125 2017-02-11 22:20:42 +01:00
Eelco Dolstra
c4fab214fa blender: 2.78a -> 2.78b 2017-02-11 22:17:28 +01:00
c74d
89db3a0bc6
perlPackages.Swim: 0.1.44 -> 0.1.45
This patch updates the Perl package `Swim` (attribute path
`perlPackages.Swim`) from version 0.1.44 to version 0.1.45.

I have tested this patch per nixpkgs manual section 11.1 ("Making
patches").
2017-02-11 21:34:23 +01:00
Rahul Gopinath
36d6a3041a jimtcl: 0.76 -> 0.77 2017-02-11 11:33:33 -08:00
Vincent Laporte
70d54cdbe3 skrooge: 2.6.0 -> 2.7.0 2017-02-11 20:33:21 +01:00
Joachim F
0b59657e2c Merge pull request #22505 from tweag/fd/spark-2.1.0
spark: 1.6.0 -> 2.1.0
2017-02-11 20:31:59 +01:00
Joachim F
2488e42cc5 Merge pull request #22620 from hrdinka/add/libretro-reicast
libretro: add reicast core
2017-02-11 20:15:59 +01:00
Joachim F
ec08d6fd2f Merge pull request #22621 from hrdinka/add/cdi2iso
cdi2iso: init at 0.1
2017-02-11 20:15:45 +01:00
Joachim F
8d0e16a08e Merge pull request #22641 from vrthra/kakoune-2017-02-09
kakoune: 2016-12-30 -> 2017-02-09
2017-02-11 20:15:23 +01:00
Joachim F
6d536f91ba Merge pull request #22662 from hrdinka/add/libretro-mednafen-saturn
libretro: add mednafen-saturn core
2017-02-11 20:13:40 +01:00
Graham Christensen
b1a05a0865
nixos: drop references to kde4
Excluding modules/programs/environment.nix for PATHand QT_PLUGIN_PATH to allow the programs to continue running.
2017-02-11 14:01:13 -05:00
Graham Christensen
3cec7d10df
kdm: drop service 2017-02-11 13:55:09 -05:00
Joachim F
5627dd27b9 Merge pull request #22540 from vrthra/rakudo-star-2017.01
rakudo-star: 2016.07 -> 2017.01
2017-02-11 19:48:37 +01:00
Peter Simons
e644f9f8ec python-packages: update "osc" to latest version from git 2017-02-11 19:25:36 +01:00
David Terry
a3523022e7 range-v3: init at 2017-01-30 (#22661) 2017-02-11 19:10:46 +01:00
Frederik Rietdijk
c512ba7e7e audaciousQt5: 3.8.1 -> 3.8.2, rename to audacious-qt5
The name is changed as well so it won't upgrade from the gtk3 version.
2017-02-11 18:19:17 +01:00