git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'master' into staging

Fixed conflicts: - lib/systems/for-meta.nix: in favor of staging - pkgs/os-specific/darwin/xcode/default.nix: in favor of master

commitad35019501e6b263e08ecb4c66f1ee6e3eee80f1 authorJan Malakhovski <oxij@oxij.org> dateSat 26 May 2018, 00:20 (9 years ago) parent98f2f0897e376b
116 files changed+1600−525
lib/systems/for-meta.nix+2 nixos/modules/module-list.nix+1 nixos/modules/profiles/base.nix−1 nixos/modules/programs/shell.nix+18−18 nixos/modules/services/admin/oxidized.nix+116 nixos/modules/services/backup/borgbackup.nix+43−7 nixos/modules/services/cluster/kubernetes/dashboard.nix+2−1 nixos/modules/services/cluster/kubernetes/default.nix+5−5 nixos/modules/services/cluster/kubernetes/dns.nix+6−3 nixos/modules/services/computing/slurm/slurm.nix+24−3 nixos/modules/services/databases/mysql.nix+12−10 nixos/modules/services/misc/gitlab.nix+4−9 nixos/modules/services/misc/nixos-manual.nix+1−1 nixos/modules/services/monitoring/dd-agent/dd-agent.nix+6−6 nixos/modules/services/monitoring/prometheus/exporters/node.nix+1 nixos/modules/services/network-filesystems/ipfs.nix+15−1 nixos/modules/services/web-apps/atlassian/crowd.nix+3−2 nixos/modules/system/boot/loader/grub/grub.nix+15−3 nixos/modules/system/boot/loader/grub/install-grub.pl+9−5 nixos/modules/system/boot/timesyncd.nix+1−1 nixos/release.nix+1 nixos/tests/docker-tools.nix+6 nixos/tests/mysql.nix−1 nixos/tests/slurm.nix−2 pkgs/applications/audio/qjackctl/default.nix+2−2 pkgs/applications/misc/kitty/default.nix+2−2 pkgs/applications/misc/memo/default.nix+17−6 pkgs/applications/misc/zathura/core/default.nix+3−10 pkgs/applications/networking/gns3/default.nix+3−3 pkgs/applications/networking/instant-messengers/nheko/default.nix+25−6 pkgs/applications/networking/instant-messengers/nheko/external-deps.patch+1−1 pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix+2−2 pkgs/applications/science/math/qalculate-gtk/default.nix+2−2 pkgs/applications/science/spyder/default.nix+1−1 pkgs/applications/version-management/gitaly/Gemfile+4−4 pkgs/applications/version-management/gitaly/Gemfile.lock+20−20 pkgs/applications/version-management/gitaly/default.nix+2−2 pkgs/applications/version-management/gitaly/gemset.nix+28−28 pkgs/applications/version-management/gitlab-workhorse/default.nix+2−2 pkgs/applications/version-management/gitlab/Gemfile+13−18 pkgs/applications/version-management/gitlab/Gemfile.lock+51−54 pkgs/applications/version-management/gitlab/default.nix+3−3 pkgs/applications/version-management/gitlab/gemset.nix+64−74 pkgs/applications/video/kodi/plugins.nix+22 pkgs/applications/video/smplayer/default.nix+2−2 pkgs/applications/window-managers/qtile/0001-Substitution-vars-for-absolute-paths.patch+2−2 pkgs/applications/window-managers/qtile/0002-Restore-PATH-and-PYTHONPATH.patch+5−5 pkgs/applications/window-managers/qtile/0003-Restart-executable.patch+6−6 pkgs/applications/window-managers/qtile/default.nix+2−2 pkgs/build-support/docker/default.nix+5−11 pkgs/build-support/docker/examples.nix+12 pkgs/development/compilers/colm/default.nix+2−2 pkgs/development/compilers/fstar/default.nix+6−3 pkgs/development/compilers/ghc/7.10.3.nix+13−3 pkgs/development/compilers/ghc/8.0.2.nix+19−5 pkgs/development/compilers/ghc/8.2.2.nix+17−9 pkgs/development/compilers/ghc/8.4.2.nix+25−13 pkgs/development/compilers/ghc/head.nix+23−10 pkgs/development/haskell-modules/configuration-nix.nix+1−1 pkgs/development/haskell-modules/generic-builder.nix+58−17 pkgs/development/haskell-modules/lib.nix+2 pkgs/development/libraries/fplll/default.nix+2−2 pkgs/development/libraries/libqalculate/default.nix+2−2 pkgs/development/libraries/zookeeper_mt/default.nix+1−1 pkgs/development/libraries/zziplib/default.nix−2 pkgs/development/ocaml-modules/earley_ocaml/default.nix+30 pkgs/development/python-modules/django-allauth/default.nix+32 pkgs/development/python-modules/django-gravatar2/default.nix+20 pkgs/development/python-modules/fpylll/default.nix+7−5 pkgs/development/python-modules/jedi/default.nix+2−2 pkgs/development/tools/mypy/default.nix → pkgs/development/python-modules/mypy/default.nix+4−2 pkgs/development/python-modules/parso/default.nix+3−3 pkgs/development/python-modules/pyls-isort/default.nix+29 pkgs/development/python-modules/pyls-mypy/default.nix+43 pkgs/development/python-modules/pynmea2/default.nix+21 pkgs/development/python-modules/python-language-server/default.nix+48 pkgs/development/python-modules/python-openid/default.nix+20 pkgs/development/python-modules/python3-openid/default.nix+22 pkgs/development/python-modules/raven/default.nix+2−2 pkgs/development/python-modules/torchvision/default.nix+4−3 pkgs/development/ruby-modules/gem-config/default.nix+7 pkgs/development/tools/parsing/ragel/default.nix+2−2 pkgs/development/tools/rust/cbindgen/default.nix+22 pkgs/development/tools/skopeo/default.nix+7−3 pkgs/development/tools/yarn/default.nix+2−2 pkgs/os-specific/darwin/ios-sdk-pkgs/default.nix+2−2 pkgs/os-specific/darwin/xcode/default.nix+47−50 pkgs/os-specific/linux/criu/default.nix+2−2 pkgs/os-specific/linux/kernel/linux-4.14.nix+2−2 pkgs/os-specific/linux/kernel/linux-4.16.nix+2−2 pkgs/os-specific/linux/kernel/linux-4.9.nix+2−2 pkgs/os-specific/linux/syslinux/default.nix+3 pkgs/servers/atlassian/confluence.nix+2−2 pkgs/servers/atlassian/crowd.nix+2−2 pkgs/servers/atlassian/jira.nix+2−2 pkgs/servers/matrix-synapse/default.nix+2−2 pkgs/tools/admin/oxidized/Gemfile+5 pkgs/tools/admin/oxidized/Gemfile.lock+69 pkgs/tools/admin/oxidized/default.nix+18 pkgs/tools/admin/oxidized/gemset.nix+206 pkgs/tools/admin/oxidized/temporary-x-series.patch+22 pkgs/tools/audio/abcm2ps/default.nix+2−2 pkgs/tools/filesystems/9pfs/default.nix+1−1 pkgs/tools/filesystems/ntfs-3g/default.nix+2 pkgs/tools/misc/parted/default.nix+2 pkgs/tools/package-management/nix-du/default.nix+4−4 pkgs/tools/security/gopass/default.nix+3−3 pkgs/tools/system/efivar/default.nix+6 pkgs/tools/system/gohai/default.nix+32 pkgs/tools/system/gohai/deps.nix+30 pkgs/tools/typesetting/pdfgrep/default.nix+2−2 pkgs/top-level/all-packages.nix+15−3 pkgs/top-level/darwin-packages.nix+2−1 pkgs/top-level/ocaml-packages.nix+2 pkgs/top-level/perl-packages.nix+1 pkgs/top-level/python-packages.nix+18
lib/systems/for-meta.nix+2
@@ -3,6 +3,8 @@ let
33 inherit (lib.systems) parse;
44 inherit (lib.systems.inspect) patterns;
55
6+ abis = lib.mapAttrs (_: abi: builtins.removeAttrs abi [ "assertions" ]) parse.abis;
7+
68in rec {
79 all = [ {} ]; # `{}` matches anything
810 none = [];
nixos/modules/module-list.nix+1
@@ -150,6 +150,7 @@
150150 ./security/rtkit.nix
151151 ./security/wrappers/default.nix
152152 ./security/sudo.nix
153+ ./services/admin/oxidized.nix
153154 ./services/admin/salt/master.nix
154155 ./services/admin/salt/minion.nix
155156 ./services/amqp/activemq/default.nix
nixos/modules/profiles/base.nix−1
@@ -29,7 +29,6 @@
2929 # Hardware-related tools.
3030 pkgs.sdparm
3131 pkgs.hdparm
32− pkgs.dmraid
3332 pkgs.smartmontools # for diagnosing hard disks
3433 pkgs.pciutils
3534 pkgs.usbutils
nixos/modules/programs/shell.nix+18−18
@@ -23,39 +23,39 @@ in
2323 environment.shellInit =
2424 ''
2525 # Set up the per-user profile.
26− mkdir -m 0755 -p $NIX_USER_PROFILE_DIR
27− if test "$(stat --printf '%u' $NIX_USER_PROFILE_DIR)" != "$(id -u)"; then
28− echo "WARNING: bad ownership on $NIX_USER_PROFILE_DIR" >&2
26+ mkdir -m 0755 -p "$NIX_USER_PROFILE_DIR"
27+ if [ "$(stat --printf '%u' "$NIX_USER_PROFILE_DIR")" != "$(id -u)" ]; then
28+ echo "WARNING: bad ownership on $NIX_USER_PROFILE_DIR, should be $(id -u)" >&2
2929 fi
3030
31− if test -w $HOME; then
32− if ! test -L $HOME/.nix-profile; then
33− if test "$USER" != root; then
34− ln -s $NIX_USER_PROFILE_DIR/profile $HOME/.nix-profile
31+ if [ -w "$HOME" ]; then
32+ if ! [ -L "$HOME/.nix-profile" ]; then
33+ if [ "$USER" != root ]; then
34+ ln -s "$NIX_USER_PROFILE_DIR/profile" "$HOME/.nix-profile"
3535 else
3636 # Root installs in the system-wide profile by default.
37− ln -s /nix/var/nix/profiles/default $HOME/.nix-profile
37+ ln -s /nix/var/nix/profiles/default "$HOME/.nix-profile"
3838 fi
3939 fi
4040
4141 # Subscribe the root user to the NixOS channel by default.
42− if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then
43− echo "${config.system.nixos.defaultChannel} nixos" > $HOME/.nix-channels
42+ if [ "$USER" = root -a ! -e "$HOME/.nix-channels" ]; then
43+ echo "${config.system.nixos.defaultChannel} nixos" > "$HOME/.nix-channels"
4444 fi
4545
4646 # Create the per-user garbage collector roots directory.
47− NIX_USER_GCROOTS_DIR=/nix/var/nix/gcroots/per-user/$USER
48− mkdir -m 0755 -p $NIX_USER_GCROOTS_DIR
49− if test "$(stat --printf '%u' $NIX_USER_GCROOTS_DIR)" != "$(id -u)"; then
50− echo "WARNING: bad ownership on $NIX_USER_GCROOTS_DIR" >&2
47+ NIX_USER_GCROOTS_DIR="/nix/var/nix/gcroots/per-user/$USER"
48+ mkdir -m 0755 -p "$NIX_USER_GCROOTS_DIR"
49+ if [ "$(stat --printf '%u' "$NIX_USER_GCROOTS_DIR")" != "$(id -u)" ]; then
50+ echo "WARNING: bad ownership on $NIX_USER_GCROOTS_DIR, should be $(id -u)" >&2
5151 fi
5252
5353 # Set up a default Nix expression from which to install stuff.
54− if [ ! -e $HOME/.nix-defexpr -o -L $HOME/.nix-defexpr ]; then
55− rm -f $HOME/.nix-defexpr
56− mkdir -p $HOME/.nix-defexpr
54+ if [ ! -e "$HOME/.nix-defexpr" -o -L "$HOME/.nix-defexpr" ]; then
55+ rm -f "$HOME/.nix-defexpr"
56+ mkdir -p "$HOME/.nix-defexpr"
5757 if [ "$USER" != root ]; then
58− ln -s /nix/var/nix/profiles/per-user/root/channels $HOME/.nix-defexpr/channels_root
58+ ln -s /nix/var/nix/profiles/per-user/root/channels "$HOME/.nix-defexpr/channels_root"
5959 fi
6060 fi
6161 fi
nixos/modules/services/admin/oxidized.nixnew file+116
@@ -0,0 +1,116 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.oxidized;
7+in
8+{
9+ options.services.oxidized = {
10+ enable = mkEnableOption "the oxidized configuation backup service.";
11+
12+ user = mkOption {
13+ type = types.str;
14+ default = "oxidized";
15+ description = ''
16+ User under which the oxidized service runs.
17+ '';
18+ };
19+
20+ group = mkOption {
21+ type = types.str;
22+ default = "oxidized";
23+ description = ''
24+ Group under which the oxidized service runs.
25+ '';
26+ };
27+
28+ dataDir = mkOption {
29+ type = types.path;
30+ default = "/var/lib/oxidized";
31+ description = "State directory for the oxidized service.";
32+ };
33+
34+ configFile = mkOption {
35+ type = types.path;
36+ example = literalExample ''
37+ pkgs.writeText "oxidized-config.yml" '''
38+ ---
39+ debug: true
40+ use_syslog: true
41+ input:
42+ default: ssh
43+ ssh:
44+ secure: true
45+ interval: 3600
46+ model_map:
47+ dell: powerconnect
48+ hp: procurve
49+ source:
50+ default: csv
51+ csv:
52+ delimiter: !ruby/regexp /:/
53+ file: "/var/lib/oxidized/.config/oxidized/router.db"
54+ map:
55+ name: 0
56+ model: 1
57+ username: 2
58+ password: 3
59+ pid: "/var/lib/oxidized/.config/oxidized/pid"
60+ rest: 127.0.0.1:8888
61+ retries: 3
62+ # ... additional config
63+ ''';
64+ '';
65+ description = ''
66+ Path to the oxidized configuration file.
67+ '';
68+ };
69+
70+ routerDB = mkOption {
71+ type = types.path;
72+ example = literalExample ''
73+ pkgs.writeText "oxidized-router.db" '''
74+ hostname-sw1:powerconnect:username1:password2
75+ hostname-sw2:procurve:username2:password2
76+ # ... additional hosts
77+ '''
78+ '';
79+ description = ''
80+ Path to the file/database which contains the targets for oxidized.
81+ '';
82+ };
83+ };
84+
85+ config = mkIf cfg.enable {
86+ users.extraGroups.${cfg.group} = { };
87+ users.extraUsers.${cfg.user} = {
88+ description = "Oxidized service user";
89+ group = cfg.group;
90+ home = cfg.dataDir;
91+ createHome = true;
92+ };
93+
94+ systemd.services.oxidized = {
95+ wantedBy = [ "multi-user.target" ];
96+ after = [ "network.target" ];
97+
98+ preStart = ''
99+ mkdir -p ${cfg.dataDir}/.config/oxidized
100+ cp -v ${cfg.routerDB} ${cfg.dataDir}/.config/oxidized/router.db
101+ cp -v ${cfg.configFile} ${cfg.dataDir}/.config/oxidized/config
102+ '';
103+
104+ serviceConfig = {
105+ ExecStart = "${pkgs.oxidized}/bin/oxidized";
106+ User = cfg.user;
107+ Group = cfg.group;
108+ UMask = "0077";
109+ NoNewPrivileges = true;
110+ Restart = "always";
111+ WorkingDirectory = cfg.dataDir;
112+ KillSignal = "SIGKILL";
113+ };
114+ };
115+ };
116+}
nixos/modules/services/backup/borgbackup.nix+43−7
@@ -35,25 +35,26 @@ let
3535 ${cfg.preHook}
3636 '' + optionalString cfg.doInit ''
3737 # Run borg init if the repo doesn't exist yet
38− if ! borg list > /dev/null; then
39− borg init \
38+ if ! borg list $extraArgs > /dev/null; then
39+ borg init $extraArgs \
4040 --encryption ${cfg.encryption.mode} \
4141 $extraInitArgs
4242 ${cfg.postInit}
4343 fi
4444 '' + ''
45− borg create \
45+ borg create $extraArgs \
4646 --compression ${cfg.compression} \
4747 --exclude-from ${mkExcludeFile cfg} \
4848 $extraCreateArgs \
4949 "::$archiveName$archiveSuffix" \
5050 ${escapeShellArgs cfg.paths}
5151 '' + optionalString cfg.appendFailedSuffix ''
52− borg rename "::$archiveName$archiveSuffix" "$archiveName"
52+ borg rename $extraArgs \
53+ "::$archiveName$archiveSuffix" "$archiveName"
5354 '' + ''
5455 ${cfg.postCreate}
5556 '' + optionalString (cfg.prune.keep != { }) ''
56− borg prune \
57+ borg prune $extraArgs \
5758 ${mkKeepArgs cfg} \
5859 --prefix ${escapeShellArg cfg.prune.prefix} \
5960 $extraPruneArgs
@@ -85,13 +86,14 @@ let
8586 ProtectSystem = "strict";
8687 ReadWritePaths =
8788 [ "${userHome}/.config/borg" "${userHome}/.cache/borg" ]
89+ ++ cfg.readWritePaths
8890 # Borg needs write access to repo if it is not remote
8991 ++ optional (isLocalPath cfg.repo) cfg.repo;
90− PrivateTmp = true;
92+ PrivateTmp = cfg.privateTmp;
9193 };
9294 environment = {
9395 BORG_REPO = cfg.repo;
94− inherit (cfg) extraInitArgs extraCreateArgs extraPruneArgs;
96+ inherit (cfg) extraArgs extraInitArgs extraCreateArgs extraPruneArgs;
9597 } // (mkPassEnv cfg) // cfg.environment;
9698 inherit (cfg) startAt;
9799 };
@@ -318,6 +320,30 @@ in {
318320 ];
319321 };
320322
323+ readWritePaths = mkOption {
324+ type = with types; listOf path;
325+ description = ''
326+ By default, borg cannot write anywhere on the system but
327+ <literal>$HOME/.config/borg</literal> and <literal>$HOME/.cache/borg</literal>.
328+ If, for example, your preHook script needs to dump files
329+ somewhere, put those directories here.
330+ '';
331+ default = [ ];
332+ example = [
333+ "/var/backup/mysqldump"
334+ ];
335+ };
336+
337+ privateTmp = mkOption {
338+ type = types.bool;
339+ description = ''
340+ Set the <literal>PrivateTmp</literal> option for
341+ the systemd-service. Set to false if you need sockets
342+ or other files from global /tmp.
343+ '';
344+ default = true;
345+ };
346+
321347 doInit = mkOption {
322348 type = types.bool;
323349 description = ''
@@ -430,6 +456,16 @@ in {
430456 default = "";
431457 };
432458
459+ extraArgs = mkOption {
460+ type = types.str;
461+ description = ''
462+ Additional arguments for all <command>borg</command> calls the
463+ service has. Handle with care.
464+ '';
465+ default = "";
466+ example = "--remote-path=/path/to/borg";
467+ };
468+
433469 extraInitArgs = mkOption {
434470 type = types.str;
435471 description = ''
nixos/modules/services/cluster/kubernetes/dashboard.nix+2−1
@@ -10,8 +10,9 @@ let
1010
1111 image = pkgs.dockerTools.pullImage {
1212 imageName = name;
13− imageTag = version;
13+ finalImageTag = version;
1414 sha256 = "11h0fz3wxp0f10fsyqaxjm7l2qg7xws50dv5iwlck5gb1fjmajad";
15+ imageDigest = "sha256:e7984d10351601080bbc146635d51f0cfbea31ca6f0df323cf7a58cf2f6a68df";
1516 };
1617in {
1718 options.services.kubernetes.addons.dashboard = {
nixos/modules/services/cluster/kubernetes/default.nix+5−5
@@ -279,7 +279,7 @@ in {
279279 tokenAuthFile = mkOption {
280280 description = ''
281281 Kubernetes apiserver token authentication file. See
282− <link xlink:href="https://kubernetes.io/docs/admin/authentication.html"/>
282+ <link xlink:href="https://kubernetes.io/docs/reference/access-authn-authz/authentication"/>
283283 '';
284284 default = null;
285285 type = types.nullOr types.path;
@@ -288,7 +288,7 @@ in {
288288 basicAuthFile = mkOption {
289289 description = ''
290290 Kubernetes apiserver basic authentication file. See
291− <link xlink:href="https://kubernetes.io/docs/admin/authentication.html"/>
291+ <link xlink:href="https://kubernetes.io/docs/reference/access-authn-authz/authentication"/>
292292 '';
293293 default = pkgs.writeText "users" ''
294294 kubernetes,admin,0
@@ -299,7 +299,7 @@ in {
299299 authorizationMode = mkOption {
300300 description = ''
301301 Kubernetes apiserver authorization mode (AlwaysAllow/AlwaysDeny/ABAC/RBAC). See
302− <link xlink:href="https://kubernetes.io/docs/admin/authorization.html"/>
302+ <link xlink:href="https://kubernetes.io/docs/reference/access-authn-authz/authorization/"/>
303303 '';
304304 default = ["RBAC" "Node"];
305305 type = types.listOf (types.enum ["AlwaysAllow" "AlwaysDeny" "ABAC" "RBAC" "Node"]);
@@ -308,7 +308,7 @@ in {
308308 authorizationPolicy = mkOption {
309309 description = ''
310310 Kubernetes apiserver authorization policy file. See
311− <link xlink:href="https://kubernetes.io/docs/admin/authorization.html"/>
311+ <link xlink:href="https://kubernetes.io/docs/reference/access-authn-authz/authorization/"/>
312312 '';
313313 default = [];
314314 type = types.listOf types.attrs;
@@ -332,7 +332,7 @@ in {
332332 runtimeConfig = mkOption {
333333 description = ''
334334 Api runtime configuration. See
335− <link xlink:href="https://kubernetes.io/docs/admin/cluster-management.html"/>
335+ <link xlink:href="https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/"/>
336336 '';
337337 default = "authentication.k8s.io/v1beta1=true";
338338 example = "api/all=false,api/v1=true";
nixos/modules/services/cluster/kubernetes/dns.nix+6−3
@@ -7,20 +7,23 @@ let
77
88 k8s-dns-kube-dns = pkgs.dockerTools.pullImage {
99 imageName = "gcr.io/google_containers/k8s-dns-kube-dns-amd64";
10− imageTag = version;
10+ finalImageTag = version;
1111 sha256 = "0q97xfqrigrfjl2a9cxl5in619py0zv44gch09jm8gqjkxl80imp";
12+ imageDigest = "sha256:40790881bbe9ef4ae4ff7fe8b892498eecb7fe6dcc22661402f271e03f7de344";
1213 };
1314
1415 k8s-dns-dnsmasq-nanny = pkgs.dockerTools.pullImage {
1516 imageName = "gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64";
16− imageTag = version;
17+ finalImageTag = version;
1718 sha256 = "051w5ca4qb88mwva4hbnh9xzlsvv7k1mbk3wz50lmig2mqrqqx6c";
19+ imageDigest = "sha256:aeeb994acbc505eabc7415187cd9edb38cbb5364dc1c2fc748154576464b3dc2";
1820 };
1921
2022 k8s-dns-sidecar = pkgs.dockerTools.pullImage {
2123 imageName = "gcr.io/google_containers/k8s-dns-sidecar-amd64";
22− imageTag = version;
24+ finalImageTag = version;
2325 sha256 = "1z0d129bcm8i2cqq36x5jhnrv9hirj8c6kjrmdav8vgf7py78vsm";
26+ imageDigest = "sha256:97074c951046e37d3cbb98b82ae85ed15704a290cce66a8314e7f846404edde9";
2427 };
2528
2629 cfg = config.services.kubernetes.addons.dns;
nixos/modules/services/computing/slurm/slurm.nix+24−3
@@ -13,6 +13,7 @@ let
1313 ${optionalString (cfg.nodeName != null) ''nodeName=${cfg.nodeName}''}
1414 ${optionalString (cfg.partitionName != null) ''partitionName=${cfg.partitionName}''}
1515 PlugStackConfig=${plugStackConfig}
16+ ProctrackType=${cfg.procTrackType}
1617 ${cfg.extraConfig}
1718 '';
1819
@@ -31,12 +32,20 @@ in
3132 services.slurm = {
3233
3334 server = {
34− enable = mkEnableOption "slurm control daemon";
35−
35+ enable = mkOption {
36+ type = types.bool;
37+ default = false;
38+ description = ''
39+ Wether to enable the slurm control daemon.
40+ Note that the standard authentication method is "munge".
41+ The "munge" service needs to be provided with a password file in order for
42+ slurm to work properly (see <literal>services.munge.password</literal>).
43+ '';
44+ };
3645 };
3746
3847 client = {
39− enable = mkEnableOption "slurm rlient daemon";
48+ enable = mkEnableOption "slurm client daemon";
4049
4150 };
4251
@@ -103,6 +112,16 @@ in
103112 '';
104113 };
105114
115+ procTrackType = mkOption {
116+ type = types.string;
117+ default = "proctrack/linuxproc";
118+ description = ''
119+ Plugin to be used for process tracking on a job step basis.
120+ The slurmd daemon uses this mechanism to identify all processes
121+ which are children of processes it spawns for a user job step.
122+ '';
123+ };
124+
106125 extraConfig = mkOption {
107126 default = "";
108127 type = types.lines;
@@ -150,6 +169,8 @@ in
150169
151170 environment.systemPackages = [ wrappedSlurm ];
152171
172+ services.munge.enable = mkDefault true;
173+
153174 systemd.services.slurmd = mkIf (cfg.client.enable) {
154175 path = with pkgs; [ wrappedSlurm coreutils ]
155176 ++ lib.optional cfg.enableSrunX11 slurm-spank-x11;
nixos/modules/services/databases/mysql.nix+12−10
@@ -231,8 +231,10 @@ in
231231
232232 environment.systemPackages = [mysql];
233233
234− systemd.services.mysql =
235− { description = "MySQL Server";
234+ systemd.services.mysql = let
235+ hasNotify = (cfg.package == pkgs.mariadb);
236+ in {
237+ description = "MySQL Server";
236238
237239 after = [ "network.target" ];
238240 wantedBy = [ "multi-user.target" ];
@@ -256,17 +258,16 @@ in
256258
257259 mkdir -m 0755 -p ${cfg.pidDir}
258260 chown -R ${cfg.user} ${cfg.pidDir}
259−
260− # Make the socket directory
261− mkdir -p /run/mysqld
262− chmod 0755 /run/mysqld
263− chown -R ${cfg.user} /run/mysqld
264261 '';
265262
266− serviceConfig.ExecStart = "${mysql}/bin/mysqld --defaults-extra-file=${myCnf} ${mysqldOptions}";
263+ serviceConfig = {
264+ Type = if hasNotify then "notify" else "simple";
265+ RuntimeDirectory = "mysqld";
266+ ExecStart = "${mysql}/bin/mysqld --defaults-extra-file=${myCnf} ${mysqldOptions}";
267+ };
267268
268− postStart =
269− ''
269+ postStart = ''
270+ ${lib.optionalString (!hasNotify) ''
270271 # Wait until the MySQL server is available for use
271272 count=0
272273 while [ ! -e /run/mysqld/mysqld.sock ]
@@ -281,6 +282,7 @@ in
281282 count=$((count++))
282283 sleep 1
283284 done
285+ ''}
284286
285287 if [ -f /tmp/mysql_init ]
286288 then
nixos/modules/services/misc/gitlab.nix+4−9
@@ -129,6 +129,7 @@ let
129129 };
130130 };
131131 extra = {};
132+ uploads.storage_path = cfg.statePath;
132133 };
133134 };
134135
@@ -565,13 +566,9 @@ in {
565566
566567 ${pkgs.openssl}/bin/openssl rand -hex 32 > ${cfg.statePath}/config/gitlab_shell_secret
567568
568− # The uploads directory is hardcoded somewhere deep in rails. It is
569− # symlinked in the gitlab package to /run/gitlab/uploads to make it
570− # configurable
571569 mkdir -p /run/gitlab
572− mkdir -p ${cfg.statePath}/{log,uploads}
570+ mkdir -p ${cfg.statePath}/log
573571 ln -sf ${cfg.statePath}/log /run/gitlab/log
574− ln -sf ${cfg.statePath}/uploads /run/gitlab/uploads
575572 ln -sf ${cfg.statePath}/tmp /run/gitlab/tmp
576573 ln -sf $GITLAB_SHELL_CONFIG_PATH /run/gitlab/shell-config.yml
577574 chown -R ${cfg.user}:${cfg.group} /run/gitlab
@@ -587,6 +584,8 @@ in {
587584 ln -sf ${smtpSettings} ${cfg.statePath}/config/initializers/smtp_settings.rb
588585 ''}
589586 ln -sf ${cfg.statePath}/config /run/gitlab/config
587+ rm ${cfg.statePath}/lib
588+ ln -sf ${pkgs.gitlab}/share/gitlab/lib ${cfg.statePath}/lib
590589 cp ${cfg.packages.gitlab}/share/gitlab/VERSION ${cfg.statePath}/VERSION
591590
592591 # JSON is a subset of YAML
@@ -638,10 +637,6 @@ in {
638637 chmod -R ug+rwX,o-rwx ${cfg.statePath}/repositories
639638 chmod -R ug-s ${cfg.statePath}/repositories
640639 find ${cfg.statePath}/repositories -type d -print0 | xargs -0 chmod g+s
641− chmod 770 ${cfg.statePath}/uploads
642− chown -R ${cfg.user} ${cfg.statePath}/uploads
643− find ${cfg.statePath}/uploads -type f -exec chmod 0644 {} \;
644− find ${cfg.statePath}/uploads -type d -not -path ${cfg.statePath}/uploads -exec chmod 0770 {} \;
645640 '';
646641
647642 serviceConfig = {
nixos/modules/services/misc/nixos-manual.nix+1−1
@@ -99,7 +99,7 @@ in
9999
100100 services.nixosManual.browser = mkOption {
101101 type = types.path;
102− default = "${pkgs.w3m-nox}/bin/w3m";
102+ default = "${pkgs.w3m-nographics}/bin/w3m";
103103 description = ''
104104 Browser used to show the manual.
105105 '';
nixos/modules/services/monitoring/dd-agent/dd-agent.nix+6−6
@@ -57,7 +57,7 @@ let
5757 instances:
5858 - use_mount: no
5959 '';
60−
60+
6161 networkConfig = pkgs.writeText "network.yaml" ''
6262 init_config:
6363
@@ -68,13 +68,13 @@ let
6868 - lo
6969 - lo0
7070 '';
71−
71+
7272 postgresqlConfig = pkgs.writeText "postgres.yaml" cfg.postgresqlConfig;
7373 nginxConfig = pkgs.writeText "nginx.yaml" cfg.nginxConfig;
7474 mongoConfig = pkgs.writeText "mongo.yaml" cfg.mongoConfig;
7575 jmxConfig = pkgs.writeText "jmx.yaml" cfg.jmxConfig;
7676 processConfig = pkgs.writeText "process.yaml" cfg.processConfig;
77−
77+
7878 etcfiles =
7979 let
8080 defaultConfd = import ./dd-agent-defaults.nix;
@@ -150,7 +150,7 @@ in {
150150 default = null;
151151 type = types.uniq (types.nullOr types.string);
152152 };
153−
153+
154154 mongoConfig = mkOption {
155155 description = "MongoDB integration configuration";
156156 default = null;
@@ -166,7 +166,7 @@ in {
166166 processConfig = mkOption {
167167 description = ''
168168 Process integration configuration
169−
169+
170170 See http://docs.datadoghq.com/integrations/process/
171171 '';
172172 default = null;
@@ -190,7 +190,7 @@ in {
190190
191191 systemd.services.dd-agent = {
192192 description = "Datadog agent monitor";
193− path = [ pkgs."dd-agent" pkgs.python pkgs.sysstat pkgs.procps ];
193+ path = [ pkgs."dd-agent" pkgs.python pkgs.sysstat pkgs.procps pkgs.gohai ];
194194 wantedBy = [ "multi-user.target" ];
195195 serviceConfig = {
196196 ExecStart = "${pkgs.dd-agent}/bin/dd-agent foreground";
nixos/modules/services/monitoring/prometheus/exporters/node.nix+1
@@ -27,6 +27,7 @@ in
2727 };
2828 serviceOpts = {
2929 serviceConfig = {
30+ RuntimeDirectory = "prometheus-node-exporter";
3031 ExecStart = ''
3132 ${pkgs.prometheus-node-exporter}/bin/node_exporter \
3233 ${concatMapStringsSep " " (x: "--collector." + x) cfg.enabledCollectors} \
nixos/modules/services/network-filesystems/ipfs.nix+15−1
@@ -186,6 +186,14 @@ in {
186186 default = [];
187187 };
188188
189+ localDiscovery = mkOption {
190+ type = types.bool;
191+ description = ''Whether to enable local discovery for the ipfs daemon.
192+ This will allow ipfs to scan ports on your local network. Some hosting services will ban you if you do this.
193+ '';
194+ default = true;
195+ };
196+
189197 serviceFdlimit = mkOption {
190198 type = types.nullOr types.int;
191199 default = null;
@@ -232,7 +240,13 @@ in {
232240 '';
233241 script = ''
234242 if [[ ! -f ${cfg.dataDir}/config ]]; then
235− ipfs init ${optionalString cfg.emptyRepo "-e"}
243+ ipfs init ${optionalString cfg.emptyRepo "-e"} \
244+ ${optionalString (! cfg.localDiscovery) "--profile=server"}
245+ else
246+ ${if cfg.localDiscovery
247+ then "ipfs config profile apply local-discovery"
248+ else "ipfs config profile apply server"
249+ }
236250 fi
237251 '';
238252
nixos/modules/services/web-apps/atlassian/crowd.nix+3−2
@@ -126,12 +126,13 @@ in
126126 };
127127
128128 preStart = ''
129− mkdir -p ${cfg.home}/{logs,work,database}
129+ rm -rf ${cfg.home}/work
130+ mkdir -p ${cfg.home}/{logs,database,work}
130131
131132 mkdir -p /run/atlassian-crowd
132133 ln -sf ${cfg.home}/{database,work,server.xml} /run/atlassian-crowd
133134
134− chown -R ${cfg.user} ${cfg.home}
135+ chown -R ${cfg.user}:${cfg.group} ${cfg.home}
135136
136137 sed -e 's,port="8095",port="${toString cfg.listenPort}" address="${cfg.listenAddress}",' \
137138 '' + (lib.optionalString cfg.proxy.enable ''
nixos/modules/system/boot/loader/grub/grub.nix+15−3
@@ -308,10 +308,22 @@ in
308308 type = types.nullOr types.path;
309309 example = literalExample "./my-background.png";
310310 description = ''
311− Background image used for GRUB. It must be a 640x480,
311+ Background image used for GRUB.
312+ Set to <literal>null</literal> to run GRUB in text mode.
313+
314+ <note><para>
315+ For grub 1:
316+ It must be a 640x480,
312317 14-colour image in XPM format, optionally compressed with
313− <command>gzip</command> or <command>bzip2</command>. Set to
314− <literal>null</literal> to run GRUB in text mode.
318+ <command>gzip</command> or <command>bzip2</command>.
319+ </para></note>
320+
321+ <note><para>
322+ For grub 2:
323+ File must be one of .png, .tga, .jpg, or .jpeg. JPEG images must
324+ not be progressive.
325+ The image will be scaled if necessary to fit the screen.
326+ </para></note>
315327 '';
316328 };
317329
nixos/modules/system/boot/loader/grub/install-grub.pl+9−5
@@ -299,12 +299,16 @@ else {
299299 copy $font, "$bootPath/converted-font.pf2" or die "cannot copy $font to $bootPath\n";
300300 }
301301 if ($splashImage) {
302− # FIXME: GRUB 1.97 doesn't resize the background image if it
303− # doesn't match the video resolution.
304− copy $splashImage, "$bootPath/background.png" or die "cannot copy $splashImage to $bootPath\n";
302+ # Keeps the image's extension.
303+ my ($filename, $dirs, $suffix) = fileparse($splashImage, qr"\..[^.]*$");
304+ # The module for jpg is jpeg.
305+ if ($suffix eq ".jpg") {
306+ $suffix = ".jpeg";
307+ }
308+ copy $splashImage, "$bootPath/background$suffix" or die "cannot copy $splashImage to $bootPath\n";
305309 $conf .= "
306− insmod png
307− if background_image " . $grubBoot->path . "/background.png; then
310+ insmod " . substr($suffix, 1) . "
311+ if background_image " . $grubBoot->path . "/background$suffix; then
308312 set color_normal=white/black
309313 set color_highlight=black/white
310314 else
nixos/modules/system/boot/timesyncd.nix+1−1
@@ -34,7 +34,7 @@ with lib;
3434
3535 environment.etc."systemd/timesyncd.conf".text = ''
3636 [Time]
37− NTP=${concatStringsSep " " config.services.ntp.servers}
37+ NTP=${concatStringsSep " " config.services.timesyncd.servers}
3838 '';
3939
4040 users.extraUsers.systemd-timesync.uid = config.ids.uids.systemd-timesync;
nixos/release.nix+1
@@ -384,6 +384,7 @@ in rec {
384384 tests.sddm = callSubTests tests/sddm.nix {};
385385 tests.simple = callTest tests/simple.nix {};
386386 tests.slim = callTest tests/slim.nix {};
387+ tests.slurm = callTest tests/slurm.nix {};
387388 tests.smokeping = callTest tests/smokeping.nix {};
388389 tests.snapper = callTest tests/snapper.nix {};
389390 tests.statsd = callTest tests/statsd.nix {};
nixos/tests/docker-tools.nix+6
@@ -45,5 +45,11 @@ import ./make-test.nix ({ pkgs, ... }: {
4545 $docker->succeed("docker load --input='${pkgs.dockerTools.examples.onTopOfPulledImage}'");
4646 $docker->succeed("docker run --rm ontopofpulledimage hello");
4747 $docker->succeed("docker rmi ontopofpulledimage");
48+
49+ # Regression test for issue #34779
50+ $docker->succeed("docker load --input='${pkgs.dockerTools.examples.runAsRootExtraCommands}'");
51+ $docker->succeed("docker run --rm runasrootextracommands cat extraCommands");
52+ $docker->succeed("docker run --rm runasrootextracommands cat runAsRoot");
53+ $docker->succeed("docker rmi '${pkgs.dockerTools.examples.runAsRootExtraCommands.imageName}'");
4854 '';
4955})
nixos/tests/mysql.nix−1
@@ -19,7 +19,6 @@ import ./make-test.nix ({ pkgs, ...} : {
1919 startAll;
2020
2121 $master->waitForUnit("mysql");
22− $master->sleep(10); # Hopefully this is long enough!!
2322 $master->succeed("echo 'use testdb; select * from tests' | mysql -u root -N | grep 4");
2423 '';
2524})
nixos/tests/slurm.nix−2
@@ -20,7 +20,6 @@ in {
2020 # TODO slrumd port and slurmctld port should be configurations and
2121 # automatically allowed by the firewall.
2222 networking.firewall.enable = false;
23− services.munge.enable = true;
2423 services.slurm = slurmconfig;
2524 };
2625 in {
@@ -28,7 +27,6 @@ in {
2827 { config, pkgs, ...}:
2928 {
3029 networking.firewall.enable = false;
31− services.munge.enable = true;
3230 services.slurm = {
3331 server.enable = true;
3432 } // slurmconfig;
pkgs/applications/audio/qjackctl/default.nix+2−2
@@ -1,14 +1,14 @@
11{ stdenv, fetchurl, pkgconfig, alsaLib, libjack2, dbus, qtbase, qttools, qtx11extras }:
22
33stdenv.mkDerivation rec {
4− version = "0.5.0";
4+ version = "0.5.1";
55 name = "qjackctl-${version}";
66
77 # some dependencies such as killall have to be installed additionally
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/qjackctl/${name}.tar.gz";
11− sha256 = "0lx81dfwanc10vrny1vzi0wx73ph82dlz99ffjzsigj3cqzz6x4s";
11+ sha256 = "0jw1s4qh4qjxnysddjv3j2lchwlslj9p4iisv9i89d3m7pf1svs4";
1212 };
1313
1414 buildInputs = [
pkgs/applications/misc/kitty/default.nix+2−2
@@ -5,7 +5,7 @@
55
66with python3Packages;
77buildPythonApplication rec {
8− version = "0.9.1";
8+ version = "0.10.1";
99 name = "kitty-${version}";
1010 format = "other";
1111
@@ -13,7 +13,7 @@ buildPythonApplication rec {
1313 owner = "kovidgoyal";
1414 repo = "kitty";
1515 rev = "v${version}";
16− sha256 = "08j2k3852c64z4mgh1j0dgdj6c2alkckpav67lzg1lxsz3w2izh2";
16+ sha256 = "1xwrrj0g70hh8zsjbd05x0js776xlf7c6mdsmrqlw4y7jfnlgl45";
1717 };
1818
1919 buildInputs = [
pkgs/applications/misc/memo/default.nix+17−6
@@ -1,23 +1,34 @@
1−{ fetchFromGitHub, ag, tree, stdenv, ... }:
1+{ fetchFromGitHub, ag, tree, man, stdenv,
2+ pandocSupport ? true, pandoc ? null
3+ , ... }:
4+
5+assert pandocSupport -> pandoc != null;
26
37stdenv.mkDerivation rec {
48
59 name = "memo-${version}";
610
7− version = "0.2";
11+ version = "0.4";
812
913 src = fetchFromGitHub {
1014 owner = "mrVanDalo";
1115 repo = "memo";
1216 rev = "${version}";
13− sha256 = "0mww4w5m6jv4s0krm74cccrz0vlr8rrwiv122jk67l1v9r80pchs";
17+ sha256 = "06999nps46dxrjakvpin1d2zvfpjil69hb3bxagq29icalag3y2z";
1418 };
1519
16− installPhase = ''
20+ installPhase = let
21+ pandocReplacement = if pandocSupport then
22+ "pandoc_cmd=${pandoc}/bin/pandoc"
23+ else
24+ "#pandoc_cmd=pandoc";
25+ in ''
1726 mkdir -p $out/{bin,share/man/man1,share/bash-completion/completions}
1827 substituteInPlace memo \
19− --replace "ack " "${ag}/bin/ag " \
20− --replace "tree " "${tree}/bin/tree "
28+ --replace "ack_cmd=ack" "ack_cmd=${ag}/bin/ag" \
29+ --replace "tree_cmd=tree" "tree_cmd=${tree}/bin/tree" \
30+ --replace "man_cmd=man" "man_cmd=${man}/bin/man" \
31+ --replace "pandoc_cmd=pandoc" "${pandocReplacement}"
2132 mv memo $out/bin/
2233 mv doc/memo.1 $out/share/man/man1/memo.1
2334 mv completion/memo.bash $out/share/bash-completion/completions/memo.sh
pkgs/applications/misc/zathura/core/default.nix+3−10
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, fetchpatch, meson, ninja, makeWrapper, pkgconfig
1+{ stdenv, fetchurl, meson, ninja, makeWrapper, pkgconfig
22, appstream-glib, desktop-file-utils, python3
33, gtk, girara, ncurses, gettext, libxml2
44, file, sqlite, glib, texlive, libintl, libseccomp
@@ -11,20 +11,13 @@ with stdenv.lib;
1111
1212stdenv.mkDerivation rec {
1313 name = "zathura-core-${version}";
14− version = "0.3.9";
14+ version = "0.4.0";
1515
1616 src = fetchurl {
1717 url = "https://pwmt.org/projects/zathura/download/zathura-${version}.tar.xz";
18− sha256 = "0z09kz92a2n8qqv3cy8bx5j5k612g2f9mmh4szqlc7yvi39aax1g";
18+ sha256 = "1j0yah09adv3bsjhhbqra5lambal32svk8fxmf89wwmcqrcr4qma";
1919 };
2020
21− patches = [
22− (fetchpatch {
23− url = https://git.pwmt.org/pwmt/zathura/commit/4223464db68529f9a2064ed760fb7746b3c0df6b.patch;
24− sha256 = "004j68b7c8alxzyx0d80lr5i43cgh7lbqm5fx3d77ihci7hdmxnw";
25− })
26− ];
27−
2821 nativeBuildInputs = [
2922 meson ninja pkgconfig appstream-glib desktop-file-utils python3.pkgs.sphinx
3023 gettext makeWrapper libxml2
pkgs/applications/networking/gns3/default.nix+3−3
@@ -1,7 +1,7 @@
11{ callPackage, stdenv }:
22
33let
4− stableVersion = "2.1.5";
4+ stableVersion = "2.1.6";
55 # Currently there is no preview version.
66 previewVersion = stableVersion;
77 addVersion = args:
@@ -10,8 +10,8 @@ let
1010 in args // { inherit version branch; };
1111 mkGui = args: callPackage (import ./gui.nix (addVersion args)) { };
1212 mkServer = args: callPackage (import ./server.nix (addVersion args)) { };
13− guiSrcHash = "1d7pwm36bqjm0d021z5qnx49v8zf4yi9jn5hn6zlbiqbz53l1x7l";
14− serverSrcHash = "002pqm4jcm5qbbw1vnhjdrgysh7d6xmdl66605wz1vbp7xn5s961";
13+ guiSrcHash = "0wrh0x5ig2x2pxyyf99z4bfiyxn19akyjic5kgf0pv2snifw2481";
14+ serverSrcHash = "0jy5700bshz54mdsh5qpcb2qrczg9isxhr4y0bmglrl23pywvisc";
1515in {
1616 guiStable = mkGui {
1717 stable = true;
pkgs/applications/networking/instant-messengers/nheko/default.nix+25−6
@@ -1,4 +1,7 @@
1−{ stdenv, fetchFromGitHub, fetchurl, cmake, doxygen, lmdb, qt5 }:
1+{
2+ lib, stdenv, fetchFromGitHub, fetchurl,
3+ cmake, doxygen, lmdb, qt5, qtmacextras
4+}:
25
36let
47 json_hpp = fetchurl {
@@ -17,8 +20,8 @@ let
1720 src = fetchFromGitHub {
1821 owner = "mujx";
1922 repo = "matrix-structs";
20− rev = "690080daa3bc1984297c4d7103cde9ea07e2e0b7";
21− sha256 = "0l6mncpdbjmrzp5a3q1jv0sxf7bwl5ljslrcjca1j2bjjbqb61bz";
23+ rev = "5e57c2385a79b6629d1998fec4a7c0baee23555e";
24+ sha256 = "112b7gnvr04g1ak7fnc7ch7w2n825j4qkw0jb49xx06ag93nb6m6";
2225 };
2326
2427 postUnpack = ''
@@ -47,19 +50,35 @@ let
4750in
4851stdenv.mkDerivation rec {
4952 name = "nheko-${version}";
50− version = "0.4.0";
53+ version = "0.4.2";
5154
5255 src = fetchFromGitHub {
5356 owner = "mujx";
5457 repo = "nheko";
5558 rev = "v${version}";
56− sha256 = "1yg6bk193mqj99x3sy0f20x3ggpl0ahrp36w6hhx7pyw5qm17342";
59+ sha256 = "1z9dbvcgwafxr131a8447qkx97x8l93k32xa8xvajgvjlimqphqk";
5760 };
5861
5962 # This patch is likely not strictly speaking needed, but will help detect when
6063 # a dependency is updated, so that the fetches up there can be updated too
6164 patches = [ ./external-deps.patch ];
6265
66+ # If, on Darwin, you encounter the error
67+ # error: must specify at least one argument for '...' parameter of variadic
68+ # macro [-Werror,-Wgnu-zero-variadic-macro-arguments]
69+ # Then adding this parameter is likely the fix you want.
70+ #
71+ # However, it looks like either cmake doesn't honor this CFLAGS variable, or
72+ # darwin's compiler doesn't have the same syntax as gcc for turning off
73+ # -Werror selectively.
74+ #
75+ # Anyway, this is something that will have to be debugged with access to a
76+ # darwin-based OS. Sorry about that!
77+ #
78+ #preConfigure = lib.optionalString stdenv.isDarwin ''
79+ # export CFLAGS=-Wno-error=gnu-zero-variadic-macro-arguments
80+ #'';
81+
6382 cmakeFlags = [
6483 "-DMATRIX_STRUCTS_LIBRARY=${matrix-structs}/lib/static/libmatrix_structs.a"
6584 "-DMATRIX_STRUCTS_INCLUDE_DIR=${matrix-structs}/include/matrix_structs"
@@ -71,7 +90,7 @@ stdenv.mkDerivation rec {
7190
7291 buildInputs = [
7392 lmdb lmdbxx matrix-structs qt5.qtbase qt5.qtmultimedia qt5.qttools tweeny
74− ];
93+ ] ++ lib.optional stdenv.isDarwin qtmacextras;
7594
7695 enableParallelBuilding = true;
7796
pkgs/applications/networking/instant-messengers/nheko/external-deps.patch+1−1
@@ -54,7 +54,7 @@ index cef00f6..e69de29 100644
5454- MatrixStructs
5555-
5656- GIT_REPOSITORY https://github.com/mujx/matrix-structs
57−- GIT_TAG 690080daa3bc1984297c4d7103cde9ea07e2e0b7
57+- GIT_TAG 5e57c2385a79b6629d1998fec4a7c0baee23555e
5858-
5959- BUILD_IN_SOURCE 1
6060- SOURCE_DIR ${MATRIX_STRUCTS_ROOT}
pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix+2−2
@@ -14,7 +14,7 @@ in {
1414 stable = mkTelegram stableVersion;
1515 preview = mkTelegram (stableVersion // {
1616 stable = false;
17− version = "1.2.21";
18− sha256Hash = "0s7dywyz8p626741m32l4a90l1x01564xg2g10gvdb25s2phdfdl";
17+ version = "1.2.22";
18+ sha256Hash = "0kni4gb6z1c22bhx8z27q4934bg3dngk69xcwykbidm32ijmmsc5";
1919 });
2020}
pkgs/applications/science/math/qalculate-gtk/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "qalculate-gtk-${version}";
5− version = "2.3.0";
5+ version = "2.5.0";
66
77 src = fetchurl {
88 url = "https://github.com/Qalculate/qalculate-gtk/archive/v${version}.tar.gz";
9− sha256 = "0j5wp6bmnwkyxlvqci6ddg478a0ms93gicvycw0c6bkvs2gd77az";
9+ sha256 = "1hwwsdk3mlzvg9fsnv0hpj0s1lfkhycwv3sx2yrjwffzphhmxs7a";
1010 };
1111
1212 patchPhase = ''
pkgs/applications/science/spyder/default.nix+1−1
@@ -19,7 +19,7 @@ buildPythonApplication rec {
1919
2020 # Somehow setuptools can't find pyqt5. Maybe because the dist-info folder is missing?
2121 postPatch = ''
22− substituteInPlace setup.py --replace 'pyqt5;python_version>="3"' ' '
22+ sed -i -e '/pyqt5/d' setup.py
2323 '';
2424
2525 propagatedBuildInputs = [
pkgs/applications/version-management/gitaly/Gemfile+4−4
@@ -3,17 +3,17 @@ source 'https://rubygems.org'
33gem 'rugged', '~> 0.27.0'
44gem 'github-linguist', '~> 5.3.3', require: 'linguist'
55gem 'gitlab-markup', '~> 1.6.2'
6−gem 'gitaly-proto', '~> 0.95.0', require: 'gitaly'
6+gem 'gitaly-proto', '~> 0.99.0', require: 'gitaly'
77gem 'activesupport', '~> 5.0.2'
88gem 'rdoc', '~> 4.2'
9−gem 'gollum-lib', '~> 4.2', require: false
10−gem 'gollum-rugged_adapter', '~> 0.4.4', require: false
9+gem 'gitlab-gollum-lib', '~> 4.2', require: false
10+gem 'gitlab-gollum-rugged_adapter', '~> 0.4.4', require: false
1111gem 'grpc', '~> 1.10.0'
1212gem 'sentry-raven', '~> 2.7.2', require: false
1313
1414# Detects the open source license the repository includes
1515# This version needs to be in sync with GitLab CE/EE
16−gem 'licensee', '~> 8.7.0'
16+gem 'licensee', '~> 8.9.0'
1717
1818# Locked until https://github.com/google/protobuf/issues/4210 is closed
1919gem 'google-protobuf', '= 3.5.1'
pkgs/applications/version-management/gitaly/Gemfile.lock+20−20
@@ -17,7 +17,7 @@ GEM
1717 multipart-post (>= 1.2, < 3)
1818 gemojione (3.3.0)
1919 json
20− gitaly-proto (0.95.0)
20+ gitaly-proto (0.99.0)
2121 google-protobuf (~> 3.1)
2222 grpc (~> 1.10)
2323 github-linguist (5.3.3)
@@ -25,7 +25,18 @@ GEM
2525 escape_utils (~> 1.1.0)
2626 mime-types (>= 1.19)
2727 rugged (>= 0.25.1)
28− github-markup (1.6.1)
28+ github-markup (1.7.0)
29+ gitlab-gollum-lib (4.2.7.1)
30+ gemojione (~> 3.2)
31+ github-markup (~> 1.6)
32+ gollum-grit_adapter (~> 1.0)
33+ nokogiri (>= 1.6.1, < 2.0)
34+ rouge (~> 2.1)
35+ sanitize (~> 2.1)
36+ stringex (~> 2.6)
37+ gitlab-gollum-rugged_adapter (0.4.4)
38+ mime-types (>= 1.15)
39+ rugged (~> 0.25)
2940 gitlab-grit (2.8.2)
3041 charlock_holmes (~> 0.6)
3142 diff-lcs (~> 1.1)
@@ -38,17 +49,6 @@ GEM
3849 rubocop-rspec (~> 1.15)
3950 gollum-grit_adapter (1.0.1)
4051 gitlab-grit (~> 2.7, >= 2.7.1)
41− gollum-lib (4.2.7)
42− gemojione (~> 3.2)
43− github-markup (~> 1.6)
44− gollum-grit_adapter (~> 1.0)
45− nokogiri (>= 1.6.1, < 2.0)
46− rouge (~> 2.1)
47− sanitize (~> 2.1)
48− stringex (~> 2.6)
49− gollum-rugged_adapter (0.4.4)
50− mime-types (>= 1.15)
51− rugged (~> 0.25)
5252 google-protobuf (3.5.1)
5353 googleapis-common-protos-types (1.0.1)
5454 google-protobuf (~> 3.0)
@@ -67,7 +67,7 @@ GEM
6767 i18n (0.8.1)
6868 json (2.1.0)
6969 jwt (2.1.0)
70− licensee (8.7.0)
70+ licensee (8.9.2)
7171 rugged (~> 0.24)
7272 little-plugger (1.1.4)
7373 logging (2.2.2)
@@ -81,7 +81,7 @@ GEM
8181 minitest (5.9.1)
8282 multi_json (1.13.1)
8383 multipart-post (2.0.0)
84− nokogiri (1.8.1)
84+ nokogiri (1.8.2)
8585 mini_portile2 (~> 2.3.0)
8686 os (0.9.6)
8787 parallel (1.12.0)
@@ -130,7 +130,7 @@ GEM
130130 faraday (~> 0.9)
131131 jwt (>= 1.5, < 3.0)
132132 multi_json (~> 1.10)
133− stringex (2.7.1)
133+ stringex (2.8.4)
134134 thread_safe (0.3.6)
135135 tzinfo (1.2.2)
136136 thread_safe (~> 0.1)
@@ -141,15 +141,15 @@ PLATFORMS
141141
142142DEPENDENCIES
143143 activesupport (~> 5.0.2)
144− gitaly-proto (~> 0.95.0)
144+ gitaly-proto (~> 0.99.0)
145145 github-linguist (~> 5.3.3)
146+ gitlab-gollum-lib (~> 4.2)
147+ gitlab-gollum-rugged_adapter (~> 0.4.4)
146148 gitlab-markup (~> 1.6.2)
147149 gitlab-styles (~> 2.0.0)
148− gollum-lib (~> 4.2)
149− gollum-rugged_adapter (~> 0.4.4)
150150 google-protobuf (= 3.5.1)
151151 grpc (~> 1.10.0)
152− licensee (~> 8.7.0)
152+ licensee (~> 8.9.0)
153153 rdoc (~> 4.2)
154154 rspec
155155 rugged (~> 0.27.0)
pkgs/applications/version-management/gitaly/default.nix+2−2
@@ -7,14 +7,14 @@ let
77 gemdir = ./.;
88 };
99in buildGoPackage rec {
10− version = "0.95.0";
10+ version = "0.100.0";
1111 name = "gitaly-${version}";
1212
1313 src = fetchFromGitLab {
1414 owner = "gitlab-org";
1515 repo = "gitaly";
1616 rev = "v${version}";
17− sha256 = "0kadld8372vj0nm692mcn8j4ngph5gzzrzp8dmb4g26h10nq9k6a";
17+ sha256 = "0lnyk3abk1jxhii4cx009w11fm082c3va0nnnnycghrmfkv2r1rs";
1818 };
1919
2020 goPackagePath = "gitlab.com/gitlab-org/gitaly";
pkgs/applications/version-management/gitaly/gemset.nix+28−28
@@ -79,10 +79,10 @@
7979 dependencies = ["google-protobuf" "grpc"];
8080 source = {
8181 remotes = ["https://rubygems.org"];
82− sha256 = "0xwgi3902c89kx0fa176wz289nh67qm9bmx0yykrg5xx1lwk8a2j";
82+ sha256 = "1y5sn60h71ssxmc8br32fqhgmfqxgrmdlg4vya8dyy37ai20f85z";
8383 type = "gem";
8484 };
85− version = "0.95.0";
85+ version = "0.99.0";
8686 };
8787 github-linguist = {
8888 dependencies = ["charlock_holmes" "escape_utils" "mime-types" "rugged"];
@@ -96,10 +96,28 @@
9696 github-markup = {
9797 source = {
9898 remotes = ["https://rubygems.org"];
99− sha256 = "1nyb9ck2c9z5qi86n7r52w0m126qpnvc93yh35cn8bwsnkjqx0iq";
99+ sha256 = "17g6g18gdjg63k75sfwiskjzl9i0hfcnrkcpb4fwrnb20v3jgswp";
100100 type = "gem";
101101 };
102− version = "1.6.1";
102+ version = "1.7.0";
103+ };
104+ gitlab-gollum-lib = {
105+ dependencies = ["gemojione" "github-markup" "gollum-grit_adapter" "nokogiri" "rouge" "sanitize" "stringex"];
106+ source = {
107+ remotes = ["https://rubygems.org"];
108+ sha256 = "0lk5ly17a40xjz8b7l05b4hkrlnq8vawjy4szxl5w0hkaa24m97s";
109+ type = "gem";
110+ };
111+ version = "4.2.7.1";
112+ };
113+ gitlab-gollum-rugged_adapter = {
114+ dependencies = ["mime-types" "rugged"];
115+ source = {
116+ remotes = ["https://rubygems.org"];
117+ sha256 = "0zk89c2ljv9skcxzwnr84rqxv3iam30n5liv5r8hgl0l67qbg1mg";
118+ type = "gem";
119+ };
120+ version = "0.4.4";
103121 };
104122 gitlab-grit = {
105123 dependencies = ["charlock_holmes" "diff-lcs" "mime-types" "posix-spawn"];
@@ -136,24 +154,6 @@
136154 };
137155 version = "1.0.1";
138156 };
139− gollum-lib = {
140− dependencies = ["gemojione" "github-markup" "gollum-grit_adapter" "nokogiri" "rouge" "sanitize" "stringex"];
141− source = {
142− remotes = ["https://rubygems.org"];
143− sha256 = "1filwvjfj5q2m6w4q274ai36d6f0mrsv2l2khhk4bv1q6pqby2fq";
144− type = "gem";
145− };
146− version = "4.2.7";
147− };
148− gollum-rugged_adapter = {
149− dependencies = ["mime-types" "rugged"];
150− source = {
151− remotes = ["https://rubygems.org"];
152− sha256 = "0khfmakp65frlaj7ajs6ihqg4xi7yc9z96kpsf1b7giqi3fqhhv4";
153− type = "gem";
154− };
155− version = "0.4.4";
156− };
157157 google-protobuf = {
158158 source = {
159159 remotes = ["https://rubygems.org"];
@@ -217,10 +217,10 @@
217217 dependencies = ["rugged"];
218218 source = {
219219 remotes = ["https://rubygems.org"];
220− sha256 = "1nhj0vx30llqyb7q52bwmrgy9xpjk3q48k98h0dvq83ym4v216a2";
220+ sha256 = "0w6d2smhg3kzcx4m2ii06akakypwhiglansk51bpx290hhc8h3pc";
221221 type = "gem";
222222 };
223− version = "8.7.0";
223+ version = "8.9.2";
224224 };
225225 little-plugger = {
226226 source = {
@@ -300,10 +300,10 @@
300300 dependencies = ["mini_portile2"];
301301 source = {
302302 remotes = ["https://rubygems.org"];
303− sha256 = "105xh2zkr8nsyfaj2izaisarpnkrrl9000y3nyflg9cbzrfxv021";
303+ sha256 = "05fm3xh462glvs0rwnfmc1spmgl4ljg2giifynbmwwqvl42zaaiq";
304304 type = "gem";
305305 };
306− version = "1.8.1";
306+ version = "1.8.2";
307307 };
308308 os = {
309309 source = {
@@ -504,10 +504,10 @@
504504 stringex = {
505505 source = {
506506 remotes = ["https://rubygems.org"];
507− sha256 = "1zc93v00av643lc6njl09wwki7h5yqayhh1din8zqfylw814l1dv";
507+ sha256 = "0c5dfrjzkskzfsdvwsviq4111rwwpbk9022nxwdidz014mky5vi1";
508508 type = "gem";
509509 };
510− version = "2.7.1";
510+ version = "2.8.4";
511511 };
512512 thread_safe = {
513513 source = {
pkgs/applications/version-management/gitlab-workhorse/default.nix+2−2
@@ -1,14 +1,14 @@
11{ stdenv, fetchFromGitLab, git, go }:
22
33stdenv.mkDerivation rec {
4− version = "4.1.0";
4+ version = "4.2.0";
55 name = "gitlab-workhorse-${version}";
66
77 srcs = fetchFromGitLab {
88 owner = "gitlab-org";
99 repo = "gitlab-workhorse";
1010 rev = "v${version}";
11− sha256 = "1yqmkpszcan5cawkl9cxjngcyqlqg061ihk31isar9ifbhpv9yfv";
11+ sha256 = "11n43mfp7a59iq8k7sh9bnww3bq56ml2p6752csclg77xii6dzyy";
1212 };
1313
1414 buildInputs = [ git go ];
pkgs/applications/version-management/gitlab/Gemfile+13−18
@@ -33,7 +33,7 @@ gem 'grape-route-helpers', '~> 2.1.0'
3333gem 'faraday', '~> 0.12'
3434
3535# Authentication libraries
36−gem 'devise', '~> 4.2'
36+gem 'devise', '~> 4.4'
3737gem 'doorkeeper', '~> 4.3'
3838gem 'doorkeeper-openid_connect', '~> 1.3'
3939gem 'omniauth', '~> 1.8'
@@ -41,7 +41,7 @@ gem 'omniauth-auth0', '~> 2.0.0'
4141gem 'omniauth-azure-oauth2', '~> 0.0.9'
4242gem 'omniauth-cas3', '~> 1.1.4'
4343gem 'omniauth-facebook', '~> 4.0.0'
44−gem 'omniauth-github', '~> 1.1.1'
44+gem 'omniauth-github', '~> 1.3'
4545gem 'omniauth-gitlab', '~> 1.0.2'
4646gem 'omniauth-google-oauth2', '~> 0.5.3'
4747gem 'omniauth-kerberos', '~> 0.3.0', group: :kerberos
@@ -51,7 +51,6 @@ gem 'omniauth-shibboleth', '~> 1.2.0'
5151gem 'omniauth-twitter', '~> 1.4'
5252gem 'omniauth_crowd', '~> 2.2.0'
5353gem 'omniauth-authentiq', '~> 0.3.1'
54−gem 'omniauth-jwt', '~> 0.0.2'
5554gem 'rack-oauth2', '~> 1.2.1'
5655gem 'jwt', '~> 1.5.6'
5756
@@ -62,7 +61,7 @@ gem 'akismet', '~> 2.0'
6261# Two-factor authentication
6362gem 'devise-two-factor', '~> 3.0.0'
6463gem 'rqrcode-rails3', '~> 0.1.7'
65−gem 'attr_encrypted', '~> 3.0.0'
64+gem 'attr_encrypted', '~> 3.1.0'
6665gem 'u2f', '~> 0.2.1'
6766
6867# GitLab Pages
@@ -82,23 +81,16 @@ gem 'net-ldap'
8281
8382# Git Wiki
8483# Required manually in config/initializers/gollum.rb to control load order
85−# Before updating this gem, check if
86−# https://github.com/gollum/gollum-lib/pull/292 has been merged.
87−# If it has, then remove the monkey patch for update_page, rename_page and raw_data_in_committer
88−# in config/initializers/gollum.rb
89−gem 'gollum-lib', '~> 4.2', require: false
84+gem 'gitlab-gollum-lib', '~> 4.2', require: false
9085
91−# Before updating this gem, check if
92−# https://github.com/gollum/rugged_adapter/pull/28 has been merged.
93−# If it has, then remove the monkey patch for tree_entry in config/initializers/gollum.rb
94−gem 'gollum-rugged_adapter', '~> 0.4.4', require: false
86+gem 'gitlab-gollum-rugged_adapter', '~> 0.4.4', require: false
9587
9688# Language detection
9789gem 'github-linguist', '~> 5.3.3', require: 'linguist'
9890
9991# API
10092gem 'grape', '~> 1.0'
101−gem 'grape-entity', '~> 0.6.0'
93+gem 'grape-entity', '~> 0.7.1'
10294gem 'rack-cors', '~> 1.0.0', require: 'rack/cors'
10395
10496# Disable strong_params so that Mash does not respond to :permitted?
@@ -147,7 +139,7 @@ gem 'creole', '~> 0.5.0'
147139gem 'wikicloth', '0.8.1'
148140gem 'asciidoctor', '~> 1.5.6'
149141gem 'asciidoctor-plantuml', '0.0.8'
150−gem 'rouge', '~> 2.0'
142+gem 'rouge', '~> 3.1'
151143gem 'truncato', '~> 0.7.9'
152144gem 'bootstrap_form', '~> 2.7.0'
153145gem 'nokogiri', '~> 1.8.2'
@@ -192,6 +184,9 @@ gem 're2', '~> 1.1.1'
192184
193185gem 'version_sorter', '~> 2.1.0'
194186
187+# User agent parsing
188+gem 'device_detector'
189+
195190# Cache
196191gem 'redis-rails', '~> 5.0.2'
197192
@@ -290,7 +285,6 @@ gem 'batch-loader', '~> 1.2.1'
290285gem 'peek', '~> 1.0.1'
291286gem 'peek-gc', '~> 0.0.2'
292287gem 'peek-mysql2', '~> 1.1.0', group: :mysql
293−gem 'peek-performance_bar', '~> 1.3.0'
294288gem 'peek-pg', '~> 1.3.0', group: :postgres
295289gem 'peek-rblineprof', '~> 0.2.0'
296290gem 'peek-redis', '~> 1.2.0'
@@ -384,6 +378,7 @@ group :test do
384378 gem 'email_spec', '~> 1.6.0'
385379 gem 'json-schema', '~> 2.8.0'
386380 gem 'webmock', '~> 2.3.2'
381+ gem 'rails-controller-testing' if rails5? # Rails5 only gem.
387382 gem 'test_after_commit', '~> 1.1' unless rails5? # Remove this gem when migrated to rails 5.0. It's been integrated to rails 5.0.
388383 gem 'sham_rack', '~> 1.3.6'
389384 gem 'concurrent-ruby', '~> 1.0.5'
@@ -421,8 +416,8 @@ group :ed25519 do
421416end
422417
423418# Gitaly GRPC client
424−gem 'gitaly-proto', '~> 0.94.0', require: 'gitaly'
425−gem 'grpc', '~> 1.10.0'
419+gem 'gitaly-proto', '~> 0.99.0', require: 'gitaly'
420+gem 'grpc', '~> 1.11.0'
426421
427422# Locked until https://github.com/google/protobuf/issues/4210 is closed
428423gem 'google-protobuf', '= 3.5.1'
pkgs/applications/version-management/gitlab/Gemfile.lock+51−54
@@ -66,7 +66,7 @@ GEM
6666 unf
6767 ast (2.4.0)
6868 atomic (1.1.99)
69− attr_encrypted (3.0.3)
69+ attr_encrypted (3.1.0)
7070 encryptor (~> 3.0.0)
7171 attr_required (1.0.0)
7272 autoprefixer-rails (6.2.3)
@@ -143,7 +143,7 @@ GEM
143143 connection_pool (2.2.1)
144144 crack (0.4.3)
145145 safe_yaml (~> 1.0.0)
146− crass (1.0.3)
146+ crass (1.0.4)
147147 creole (0.5.0)
148148 css_parser (1.5.0)
149149 addressable
@@ -161,10 +161,11 @@ GEM
161161 activerecord (>= 3.2.0, < 5.1)
162162 descendants_tracker (0.0.4)
163163 thread_safe (~> 0.3, >= 0.3.1)
164− devise (4.2.0)
164+ device_detector (1.0.0)
165+ devise (4.4.3)
165166 bcrypt (~> 3.0)
166167 orm_adapter (~> 0.1)
167− railties (>= 4.1.0, < 5.1)
168+ railties (>= 4.1.0, < 6.0)
168169 responders
169170 warden (~> 1.2.3)
170171 devise-two-factor (3.0.0)
@@ -178,7 +179,7 @@ GEM
178179 docile (1.1.5)
179180 domain_name (0.5.20170404)
180181 unf (>= 0.0.5, < 1.0.0)
181− doorkeeper (4.3.1)
182+ doorkeeper (4.3.2)
182183 railties (>= 4.2)
183184 doorkeeper-openid_connect (1.3.0)
184185 doorkeeper (~> 4.3)
@@ -206,7 +207,7 @@ GEM
206207 railties (>= 3.0.0)
207208 faraday (0.12.2)
208209 multipart-post (>= 1.2, < 3)
209− faraday_middleware (0.11.0.1)
210+ faraday_middleware (0.12.2)
210211 faraday (>= 0.7.4, < 1.0)
211212 faraday_middleware-multi_json (0.0.6)
212213 faraday_middleware
@@ -290,19 +291,30 @@ GEM
290291 po_to_json (>= 1.0.0)
291292 rails (>= 3.2.0)
292293 gherkin-ruby (0.3.2)
293− gitaly-proto (0.94.0)
294+ gitaly-proto (0.99.0)
294295 google-protobuf (~> 3.1)
295− grpc (~> 1.0)
296+ grpc (~> 1.10)
296297 github-linguist (5.3.3)
297298 charlock_holmes (~> 0.7.5)
298299 escape_utils (~> 1.1.0)
299300 mime-types (>= 1.19)
300301 rugged (>= 0.25.1)
301− github-markup (1.6.1)
302+ github-markup (1.7.0)
302303 gitlab-flowdock-git-hook (1.0.1)
303304 flowdock (~> 0.7)
304305 gitlab-grit (>= 2.4.1)
305306 multi_json
307+ gitlab-gollum-lib (4.2.7.2)
308+ gemojione (~> 3.2)
309+ github-markup (~> 1.6)
310+ gollum-grit_adapter (~> 1.0)
311+ nokogiri (>= 1.6.1, < 2.0)
312+ rouge (~> 3.1)
313+ sanitize (~> 2.1)
314+ stringex (~> 2.6)
315+ gitlab-gollum-rugged_adapter (0.4.4)
316+ mime-types (>= 1.15)
317+ rugged (~> 0.25)
306318 gitlab-grit (2.8.2)
307319 charlock_holmes (~> 0.6)
308320 diff-lcs (~> 1.1)
@@ -322,17 +334,6 @@ GEM
322334 activesupport (>= 4.2.0)
323335 gollum-grit_adapter (1.0.1)
324336 gitlab-grit (~> 2.7, >= 2.7.1)
325− gollum-lib (4.2.7)
326− gemojione (~> 3.2)
327− github-markup (~> 1.6)
328− gollum-grit_adapter (~> 1.0)
329− nokogiri (>= 1.6.1, < 2.0)
330− rouge (~> 2.1)
331− sanitize (~> 2.1)
332− stringex (~> 2.6)
333− gollum-rugged_adapter (0.4.4)
334− mime-types (>= 1.15)
335− rugged (~> 0.25)
336337 gon (6.1.0)
337338 actionpack (>= 3.0)
338339 json
@@ -365,8 +366,8 @@ GEM
365366 rack (>= 1.3.0)
366367 rack-accept
367368 virtus (>= 1.0.0)
368− grape-entity (0.6.0)
369− activesupport
369+ grape-entity (0.7.1)
370+ activesupport (>= 4.0)
370371 multi_json (>= 1.3.2)
371372 grape-route-helpers (2.1.0)
372373 activesupport
@@ -374,7 +375,7 @@ GEM
374375 rake
375376 grape_logging (1.7.0)
376377 grape
377− grpc (1.10.0)
378+ grpc (1.11.0)
378379 google-protobuf (~> 3.1)
379380 googleapis-common-protos-types (~> 1.0.0)
380381 googleauth (>= 0.5.1, < 0.7)
@@ -483,10 +484,11 @@ GEM
483484 logging (2.2.2)
484485 little-plugger (~> 1.1)
485486 multi_json (~> 1.10)
486− lograge (0.5.1)
487− actionpack (>= 4, < 5.2)
488− activesupport (>= 4, < 5.2)
489− railties (>= 4, < 5.2)
487+ lograge (0.10.0)
488+ actionpack (>= 4)
489+ activesupport (>= 4)
490+ railties (>= 4)
491+ request_store (~> 1.0)
490492 loofah (2.2.2)
491493 crass (~> 1.0.2)
492494 nokogiri (>= 1.5.9)
@@ -544,9 +546,9 @@ GEM
544546 omniauth (~> 1.2)
545547 omniauth-facebook (4.0.0)
546548 omniauth-oauth2 (~> 1.2)
547− omniauth-github (1.1.2)
548− omniauth (~> 1.0)
549− omniauth-oauth2 (~> 1.1)
549+ omniauth-github (1.3.0)
550+ omniauth (~> 1.5)
551+ omniauth-oauth2 (>= 1.4.0, < 2.0)
550552 omniauth-gitlab (1.0.2)
551553 omniauth (~> 1.0)
552554 omniauth-oauth2 (~> 1.0)
@@ -554,9 +556,6 @@ GEM
554556 jwt (>= 1.5)
555557 omniauth (>= 1.1.1)
556558 omniauth-oauth2 (>= 1.5)
557− omniauth-jwt (0.0.2)
558− jwt
559− omniauth (~> 1.1)
560559 omniauth-kerberos (0.3.0)
561560 omniauth-multipassword
562561 timfel-krb5-auth (~> 0.8)
@@ -587,7 +586,7 @@ GEM
587586 orm_adapter (0.5.0)
588587 os (0.9.6)
589588 parallel (1.12.1)
590− parser (2.5.0.5)
589+ parser (2.5.1.0)
591590 ast (~> 2.4.0)
592591 parslet (1.5.0)
593592 blankslate (~> 2.0)
@@ -602,8 +601,6 @@ GEM
602601 atomic (>= 1.0.0)
603602 mysql2
604603 peek
605− peek-performance_bar (1.3.1)
606− peek (>= 0.1.0)
607604 peek-pg (1.3.0)
608605 concurrent-ruby
609606 concurrent-ruby-ext
@@ -649,7 +646,7 @@ GEM
649646 pry (>= 0.9.10)
650647 public_suffix (3.0.2)
651648 pyu-ruby-sasl (0.0.3.3)
652− rack (1.6.9)
649+ rack (1.6.10)
653650 rack-accept (0.4.5)
654651 rack (>= 0.4)
655652 rack-attack (4.4.1)
@@ -697,7 +694,7 @@ GEM
697694 rainbow (2.2.2)
698695 rake
699696 raindrops (0.18.0)
700− rake (12.3.0)
697+ rake (12.3.1)
701698 rb-fsevent (0.10.2)
702699 rb-inotify (0.9.10)
703700 ffi (>= 0.5.0, < 2)
@@ -738,8 +735,9 @@ GEM
738735 declarative-option (< 0.2.0)
739736 uber (< 0.2.0)
740737 request_store (1.3.1)
741− responders (2.3.0)
742− railties (>= 4.2.0, < 5.1)
738+ responders (2.4.0)
739+ actionpack (>= 4.2.0, < 5.3)
740+ railties (>= 4.2.0, < 5.3)
743741 rest-client (2.0.2)
744742 http-cookie (>= 1.0.2, < 2.0)
745743 mime-types (>= 1.16, < 4.0)
@@ -747,7 +745,7 @@ GEM
747745 retriable (3.1.1)
748746 rinku (2.0.0)
749747 rotp (2.1.2)
750− rouge (2.2.1)
748+ rouge (3.1.1)
751749 rqrcode (0.7.0)
752750 chunky_png
753751 rqrcode-rails3 (0.1.7)
@@ -907,7 +905,7 @@ GEM
907905 state_machines-activerecord (0.5.1)
908906 activerecord (>= 4.1, < 6.0)
909907 state_machines-activemodel (>= 0.5.0)
910− stringex (2.7.1)
908+ stringex (2.8.4)
911909 sys-filesystem (1.1.6)
912910 ffi
913911 sysexits (1.2.0)
@@ -969,7 +967,7 @@ GEM
969967 descendants_tracker (~> 0.0, >= 0.0.3)
970968 equalizer (~> 0.0, >= 0.0.9)
971969 vmstat (2.3.0)
972− warden (1.2.6)
970+ warden (1.2.7)
973971 rack (>= 1.0)
974972 webmock (2.3.2)
975973 addressable (>= 2.3.6)
@@ -1001,7 +999,7 @@ DEPENDENCIES
1001999 asciidoctor (~> 1.5.6)
10021000 asciidoctor-plantuml (= 0.0.8)
10031001 asset_sync (~> 2.2.0)
1004− attr_encrypted (~> 3.0.0)
1002+ attr_encrypted (~> 3.1.0)
10051003 awesome_print (~> 1.2.0)
10061004 babosa (~> 1.0.2)
10071005 base32 (~> 0.3.0)
@@ -1030,7 +1028,8 @@ DEPENDENCIES
10301028 database_cleaner (~> 1.5.0)
10311029 deckar01-task_list (= 2.0.0)
10321030 default_value_for (~> 3.0.0)
1033− devise (~> 4.2)
1031+ device_detector
1032+ devise (~> 4.4)
10341033 devise-two-factor (~> 3.0.0)
10351034 diffy (~> 3.1.0)
10361035 doorkeeper (~> 4.3)
@@ -1061,23 +1060,23 @@ DEPENDENCIES
10611060 gettext (~> 3.2.2)
10621061 gettext_i18n_rails (~> 1.8.0)
10631062 gettext_i18n_rails_js (~> 1.3)
1064− gitaly-proto (~> 0.94.0)
1063+ gitaly-proto (~> 0.99.0)
10651064 github-linguist (~> 5.3.3)
10661065 gitlab-flowdock-git-hook (~> 1.0.1)
1066+ gitlab-gollum-lib (~> 4.2)
1067+ gitlab-gollum-rugged_adapter (~> 0.4.4)
10671068 gitlab-markup (~> 1.6.2)
10681069 gitlab-styles (~> 2.3)
10691070 gitlab_omniauth-ldap (~> 2.0.4)
1070− gollum-lib (~> 4.2)
1071− gollum-rugged_adapter (~> 0.4.4)
10721071 gon (~> 6.1.0)
10731072 google-api-client (~> 0.19.8)
10741073 google-protobuf (= 3.5.1)
10751074 gpgme
10761075 grape (~> 1.0)
1077− grape-entity (~> 0.6.0)
1076+ grape-entity (~> 0.7.1)
10781077 grape-route-helpers (~> 2.1.0)
10791078 grape_logging (~> 1.7)
1080− grpc (~> 1.10.0)
1079+ grpc (~> 1.11.0)
10811080 haml_lint (~> 0.26.0)
10821081 hamlit (~> 2.6.1)
10831082 hashie-forbidden_attributes
@@ -1115,10 +1114,9 @@ DEPENDENCIES
11151114 omniauth-azure-oauth2 (~> 0.0.9)
11161115 omniauth-cas3 (~> 1.1.4)
11171116 omniauth-facebook (~> 4.0.0)
1118− omniauth-github (~> 1.1.1)
1117+ omniauth-github (~> 1.3)
11191118 omniauth-gitlab (~> 1.0.2)
11201119 omniauth-google-oauth2 (~> 0.5.3)
1121− omniauth-jwt (~> 0.0.2)
11221120 omniauth-kerberos (~> 0.3.0)
11231121 omniauth-oauth2-generic (~> 0.2.2)
11241122 omniauth-saml (~> 1.10)
@@ -1129,7 +1127,6 @@ DEPENDENCIES
11291127 peek (~> 1.0.1)
11301128 peek-gc (~> 0.0.2)
11311129 peek-mysql2 (~> 1.1.0)
1132− peek-performance_bar (~> 1.3.0)
11331130 peek-pg (~> 1.3.0)
11341131 peek-rblineprof (~> 0.2.0)
11351132 peek-redis (~> 1.2.0)
@@ -1160,7 +1157,7 @@ DEPENDENCIES
11601157 redis-rails (~> 5.0.2)
11611158 request_store (~> 1.3)
11621159 responders (~> 2.0)
1163− rouge (~> 2.0)
1160+ rouge (~> 3.1)
11641161 rqrcode-rails3 (~> 0.1.7)
11651162 rspec-parameterized
11661163 rspec-rails (~> 3.6.0)
pkgs/applications/version-management/gitlab/default.nix+3−3
@@ -16,11 +16,11 @@ let
1616 };
1717 };
1818
19− version = "10.7.0";
19+ version = "10.8.0";
2020
2121 gitlabDeb = fetchurl {
2222 url = "https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/jessie/gitlab-ce_${version}-ce.0_amd64.deb/download";
23− sha256 = "0dngh6gj8kkfcxn6ki9i96jg4x1x0vq3zzdimxz31g3j2zpd0ryz";
23+ sha256 = "0j5jrlwfpgwfirjnqb9w4snl9w213kdxb1ajyrla211q603d4j34";
2424 };
2525
2626in
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
3232 owner = "gitlabhq";
3333 repo = "gitlabhq";
3434 rev = "v${version}";
35− sha256 = "010xhzrp6svp2a4xzmzwl4x3hk9wc1frqr66lp8x58nfmvr8hdrg";
35+ sha256 = "1idvi27xpghvvb3sv62afhcnnswvjlrbg5lld79a761kd4187cym";
3636 };
3737
3838 buildInputs = [
pkgs/applications/version-management/gitlab/gemset.nix+64−74
@@ -201,10 +201,10 @@
201201 dependencies = ["encryptor"];
202202 source = {
203203 remotes = ["https://rubygems.org"];
204− sha256 = "1dikbf55wjqyzfb9p4xjkkkajwan569pmzljdf9c1fy4a94cd13d";
204+ sha256 = "0ncv2az1zlj33bsllr6q1qdvbw42gv91lxq0ryclbv8l8xh841jg";
205205 type = "gem";
206206 };
207− version = "3.0.3";
207+ version = "3.1.0";
208208 };
209209 attr_required = {
210210 source = {
@@ -554,10 +554,10 @@
554554 crass = {
555555 source = {
556556 remotes = ["https://rubygems.org"];
557− sha256 = "1czijxlagzpzwchr2ldrgfi7kywg08idjpq37ndcmwh4fmz72c4l";
557+ sha256 = "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi";
558558 type = "gem";
559559 };
560− version = "1.0.3";
560+ version = "1.0.4";
561561 };
562562 creole = {
563563 source = {
@@ -660,14 +660,22 @@
660660 };
661661 version = "0.0.4";
662662 };
663+ device_detector = {
664+ source = {
665+ remotes = ["https://rubygems.org"];
666+ sha256 = "0zbsjj1bgwmsiqiw6x5fzbzp25xc10c02s37ggl2635ha0qzn05q";
667+ type = "gem";
668+ };
669+ version = "1.0.0";
670+ };
663671 devise = {
664672 dependencies = ["bcrypt" "orm_adapter" "railties" "responders" "warden"];
665673 source = {
666674 remotes = ["https://rubygems.org"];
667− sha256 = "045qw3186gkcm38wjbjhb7w2zycbqj85wfb1cdwvkqk8hf1a7dp0";
675+ sha256 = "1xmxfhym0yxwb0zwmmzhdiykbpyqqm3id02g7rf3vcgbc1lqvdnj";
668676 type = "gem";
669677 };
670− version = "4.2.0";
678+ version = "4.4.3";
671679 };
672680 devise-two-factor = {
673681 dependencies = ["activesupport" "attr_encrypted" "devise" "railties" "rotp"];
@@ -715,10 +723,10 @@
715723 dependencies = ["railties"];
716724 source = {
717725 remotes = ["https://rubygems.org"];
718− sha256 = "1yjbmkhpj25h6n5hi382gxna1303crr4v57w1ic23n0w8ll6jh0z";
726+ sha256 = "022r03i830b2lvmr0xzlj6ivlvc1zr64hy4a4bsy3flv94da77rz";
719727 type = "gem";
720728 };
721− version = "4.3.1";
729+ version = "4.3.2";
722730 };
723731 doorkeeper-openid_connect = {
724732 dependencies = ["doorkeeper" "json-jwt"];
@@ -859,10 +867,10 @@
859867 dependencies = ["faraday"];
860868 source = {
861869 remotes = ["https://rubygems.org"];
862− sha256 = "0bcarc90brm1y68bl957w483bddsy9idj2gghqnysk6bbxpsvm00";
870+ sha256 = "1p7icfl28nvl8qqdsngryz1snqic9l8x6bk0dxd7ygn230y0k41d";
863871 type = "gem";
864872 };
865− version = "0.11.0.1";
873+ version = "0.12.2";
866874 };
867875 faraday_middleware-multi_json = {
868876 dependencies = ["faraday_middleware" "multi_json"];
@@ -1130,10 +1138,10 @@
11301138 dependencies = ["google-protobuf" "grpc"];
11311139 source = {
11321140 remotes = ["https://rubygems.org"];
1133− sha256 = "1rnfswh0jpsiyzvsac7kwk9rpbpf4fcz9p2i8pamqamm3skgd4i6";
1141+ sha256 = "1y5sn60h71ssxmc8br32fqhgmfqxgrmdlg4vya8dyy37ai20f85z";
11341142 type = "gem";
11351143 };
1136− version = "0.94.0";
1144+ version = "0.99.0";
11371145 };
11381146 github-linguist = {
11391147 dependencies = ["charlock_holmes" "escape_utils" "mime-types" "rugged"];
@@ -1147,10 +1155,10 @@
11471155 github-markup = {
11481156 source = {
11491157 remotes = ["https://rubygems.org"];
1150− sha256 = "1nyb9ck2c9z5qi86n7r52w0m126qpnvc93yh35cn8bwsnkjqx0iq";
1158+ sha256 = "17g6g18gdjg63k75sfwiskjzl9i0hfcnrkcpb4fwrnb20v3jgswp";
11511159 type = "gem";
11521160 };
1153− version = "1.6.1";
1161+ version = "1.7.0";
11541162 };
11551163 gitlab-flowdock-git-hook = {
11561164 dependencies = ["flowdock" "gitlab-grit" "multi_json"];
@@ -1161,6 +1169,24 @@
11611169 };
11621170 version = "1.0.1";
11631171 };
1172+ gitlab-gollum-lib = {
1173+ dependencies = ["gemojione" "github-markup" "gollum-grit_adapter" "nokogiri" "rouge" "sanitize" "stringex"];
1174+ source = {
1175+ remotes = ["https://rubygems.org"];
1176+ sha256 = "1a1dv8n33pj2il07c8z7gz5542iby0z2qwymv8yj1kcn4avs4dxv";
1177+ type = "gem";
1178+ };
1179+ version = "4.2.7.2";
1180+ };
1181+ gitlab-gollum-rugged_adapter = {
1182+ dependencies = ["mime-types" "rugged"];
1183+ source = {
1184+ remotes = ["https://rubygems.org"];
1185+ sha256 = "0zk89c2ljv9skcxzwnr84rqxv3iam30n5liv5r8hgl0l67qbg1mg";
1186+ type = "gem";
1187+ };
1188+ version = "0.4.4";
1189+ };
11641190 gitlab-grit = {
11651191 dependencies = ["charlock_holmes" "diff-lcs" "mime-types" "posix-spawn"];
11661192 source = {
@@ -1214,24 +1240,6 @@
12141240 };
12151241 version = "1.0.1";
12161242 };
1217− gollum-lib = {
1218− dependencies = ["gemojione" "github-markup" "gollum-grit_adapter" "nokogiri" "rouge" "sanitize" "stringex"];
1219− source = {
1220− remotes = ["https://rubygems.org"];
1221− sha256 = "1filwvjfj5q2m6w4q274ai36d6f0mrsv2l2khhk4bv1q6pqby2fq";
1222− type = "gem";
1223− };
1224− version = "4.2.7";
1225− };
1226− gollum-rugged_adapter = {
1227− dependencies = ["mime-types" "rugged"];
1228− source = {
1229− remotes = ["https://rubygems.org"];
1230− sha256 = "0khfmakp65frlaj7ajs6ihqg4xi7yc9z96kpsf1b7giqi3fqhhv4";
1231− type = "gem";
1232− };
1233− version = "0.4.4";
1234− };
12351243 gon = {
12361244 dependencies = ["actionpack" "json" "multi_json" "request_store"];
12371245 source = {
@@ -1298,10 +1306,10 @@
12981306 dependencies = ["activesupport" "multi_json"];
12991307 source = {
13001308 remotes = ["https://rubygems.org"];
1301− sha256 = "18jhjn1164z68xrjz23wf3qha3x9az086dr7p6405jv6rszyxihq";
1309+ sha256 = "1w78wylkhdkc0s6n6d20hggbb3pl3ladzzd5lx6ack2iswybx7b9";
13021310 type = "gem";
13031311 };
1304− version = "0.6.0";
1312+ version = "0.7.1";
13051313 };
13061314 grape-route-helpers = {
13071315 dependencies = ["activesupport" "grape" "rake"];
@@ -1325,10 +1333,10 @@
13251333 dependencies = ["google-protobuf" "googleapis-common-protos-types" "googleauth"];
13261334 source = {
13271335 remotes = ["https://rubygems.org"];
1328− sha256 = "17wvqhjmldxph4li402rvfbyzi5455lzmfr2y19kq9ghrzjyad82";
1336+ sha256 = "1is4czi3i7y6zyxzyrpsma1z91axmc0jz2ngr6ckixqd3629npkz";
13291337 type = "gem";
13301338 };
1331− version = "1.10.0";
1339+ version = "1.11.0";
13321340 };
13331341 haml = {
13341342 dependencies = ["tilt"];
@@ -1694,13 +1702,13 @@
16941702 version = "2.2.2";
16951703 };
16961704 lograge = {
1697− dependencies = ["actionpack" "activesupport" "railties"];
1705+ dependencies = ["actionpack" "activesupport" "railties" "request_store"];
16981706 source = {
16991707 remotes = ["https://rubygems.org"];
1700− sha256 = "1n08i1m4bn28vrc6gd642wzbyk2cdwahgcysd7pc2c7zd1ipqh0p";
1708+ sha256 = "00lcn7s3slfn32di4qwlx2yj5f9r2pcnd0naxrvqqwypcg1z2sdd";
17011709 type = "gem";
17021710 };
1703− version = "0.5.1";
1711+ version = "0.10.0";
17041712 };
17051713 loofah = {
17061714 dependencies = ["crass" "nokogiri"];
@@ -1984,10 +1992,10 @@
19841992 dependencies = ["omniauth" "omniauth-oauth2"];
19851993 source = {
19861994 remotes = ["https://rubygems.org"];
1987− sha256 = "1mbx3c8m1llhdxrqdciq8jh428bxj1nvf4yhziv2xqmqpjcqz617";
1995+ sha256 = "0yg7k4p95ybcsii17spqarl8rpfzkq0kb19ab6wl4lc922zgfbqc";
19881996 type = "gem";
19891997 };
1990− version = "1.1.2";
1998+ version = "1.3.0";
19911999 };
19922000 omniauth-gitlab = {
19932001 dependencies = ["omniauth" "omniauth-oauth2"];
@@ -2007,15 +2015,6 @@
20072015 };
20082016 version = "0.5.3";
20092017 };
2010− omniauth-jwt = {
2011− dependencies = ["jwt" "omniauth"];
2012− source = {
2013− remotes = ["https://rubygems.org"];
2014− sha256 = "0qxr95z5p7fs13mg04zp76ldplgk6n8fkwbn17mlzlry1ihcrgxr";
2015− type = "gem";
2016− };
2017− version = "0.0.2";
2018− };
20192018 omniauth-kerberos = {
20202019 dependencies = ["omniauth-multipassword" "timfel-krb5-auth"];
20212020 source = {
@@ -2134,10 +2133,10 @@
21342133 dependencies = ["ast"];
21352134 source = {
21362135 remotes = ["https://rubygems.org"];
2137− sha256 = "1sj8dlqs5l2pa5y2412r4d5fi7qvf26n8vpciz7k9fy0ch327gdc";
2136+ sha256 = "1af7aa1c2npi8dkshgm3f8qyacabm94ckrdz7b8vd3f8zzswqzp9";
21382137 type = "gem";
21392138 };
2140− version = "2.5.0.5";
2139+ version = "2.5.1.0";
21412140 };
21422141 parslet = {
21432142 dependencies = ["blankslate"];
@@ -2183,15 +2182,6 @@
21832182 };
21842183 version = "1.1.0";
21852184 };
2186− peek-performance_bar = {
2187− dependencies = ["peek"];
2188− source = {
2189− remotes = ["https://rubygems.org"];
2190− sha256 = "1a0ly4p8xnrb3pnf273qq2d5bm2w19p829n4n2730rijd42pa2n4";
2191− type = "gem";
2192− };
2193− version = "1.3.1";
2194− };
21952185 peek-pg = {
21962186 dependencies = ["concurrent-ruby" "concurrent-ruby-ext" "peek" "pg"];
21972187 source = {
@@ -2350,10 +2340,10 @@
23502340 rack = {
23512341 source = {
23522342 remotes = ["https://rubygems.org"];
2353− sha256 = "03w1ri5l91q800f1bdcdl5rbagy7s4kml136b42s2lmxmznxhr07";
2343+ sha256 = "0in0amn0kwvzmi8h5zg6ijrx5wpsf8h96zrfmnk1kwh2ql4sxs2q";
23542344 type = "gem";
23552345 };
2356− version = "1.6.9";
2346+ version = "1.6.10";
23572347 };
23582348 rack-accept = {
23592349 dependencies = ["rack"];
@@ -2491,10 +2481,10 @@
24912481 rake = {
24922482 source = {
24932483 remotes = ["https://rubygems.org"];
2494− sha256 = "190p7cs8zdn07mjj6xwwsdna3g0r98zs4crz7jh2j2q5b0nbxgjf";
2484+ sha256 = "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg";
24952485 type = "gem";
24962486 };
2497− version = "12.3.0";
2487+ version = "12.3.1";
24982488 };
24992489 rb-fsevent = {
25002490 source = {
@@ -2670,13 +2660,13 @@
26702660 version = "1.3.1";
26712661 };
26722662 responders = {
2673− dependencies = ["railties"];
2663+ dependencies = ["actionpack" "railties"];
26742664 source = {
26752665 remotes = ["https://rubygems.org"];
2676− sha256 = "16h343srb6msivc2mpm1dbihsmniwvyc9jk3g4ip08g9fpmxfc2i";
2666+ sha256 = "1rhdyyvvm26f2l3fgwdp6xasfl2y0whwgy766bhdwz697mf78zfn";
26772667 type = "gem";
26782668 };
2679− version = "2.3.0";
2669+ version = "2.4.0";
26802670 };
26812671 rest-client = {
26822672 dependencies = ["http-cookie" "mime-types" "netrc"];
@@ -2714,10 +2704,10 @@
27142704 rouge = {
27152705 source = {
27162706 remotes = ["https://rubygems.org"];
2717− sha256 = "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs";
2707+ sha256 = "1sfhy0xxqjnzqa7qxmpz1bmy0mzcr55qyvi410gsb6d6i4ialbw3";
27182708 type = "gem";
27192709 };
2720− version = "2.2.1";
2710+ version = "3.1.1";
27212711 };
27222712 rqrcode = {
27232713 dependencies = ["chunky_png"];
@@ -3287,10 +3277,10 @@
32873277 stringex = {
32883278 source = {
32893279 remotes = ["https://rubygems.org"];
3290− sha256 = "1zc93v00av643lc6njl09wwki7h5yqayhh1din8zqfylw814l1dv";
3280+ sha256 = "0c5dfrjzkskzfsdvwsviq4111rwwpbk9022nxwdidz014mky5vi1";
32913281 type = "gem";
32923282 };
3293− version = "2.7.1";
3283+ version = "2.8.4";
32943284 };
32953285 sys-filesystem = {
32963286 dependencies = ["ffi"];
@@ -3558,10 +3548,10 @@
35583548 dependencies = ["rack"];
35593549 source = {
35603550 remotes = ["https://rubygems.org"];
3561− sha256 = "04gpmnvkp312wxmsvvbq834iyab58vjmh6w4x4qpgh4p1lzkiq1l";
3551+ sha256 = "0va966lhpylcwbqb9n151kkihx30agh0a57mwjwdxyanll4s1q12";
35623552 type = "gem";
35633553 };
3564− version = "1.2.6";
3554+ version = "1.2.7";
35653555 };
35663556 webmock = {
35673557 dependencies = ["addressable" "crack" "hashdiff"];
pkgs/applications/video/kodi/plugins.nix+22
@@ -338,4 +338,26 @@ rec {
338338
339339 extraBuildInputs = [ zlib ];
340340 };
341+
342+ osmc-skin = mkKodiPlugin rec {
343+
344+ plugin = "osmc-skin";
345+ namespace = "skin.osmc";
346+ version = "17.0.4";
347+
348+ src = fetchFromGitHub {
349+ owner = "osmc";
350+ repo = namespace;
351+ rev = "a9268937f49286bab9fb49de430b8aafd7a60a9e";
352+ sha256 = "1b3fm02annsq58pcfc985glrmh21rmqksdj3q8wn6gyza06jdf3v";
353+ };
354+
355+ meta = with stdenv.lib; {
356+ homepage = https://github.com/osmc/skin.osmc;
357+ description = "The default skin for OSMC";
358+ platforms = platforms.all;
359+ maintainers = with maintainers; [ worldofpeace ];
360+ license = licenses.cc-by-nc-sa-30;
361+ };
362+ };
341363}
pkgs/applications/video/smplayer/default.nix+2−2
@@ -1,11 +1,11 @@
11{ stdenv, fetchurl, qmake, qtscript }:
22
33stdenv.mkDerivation rec {
4− name = "smplayer-18.4.0";
4+ name = "smplayer-18.5.0";
55
66 src = fetchurl {
77 url = "mirror://sourceforge/smplayer/${name}.tar.bz2";
8− sha256 = "0q2fbg41djyxsy6jinlnidpcqxvs9bi91ga3fwlgnfh6kxsw2ldd";
8+ sha256 = "0fxd8zmp5dyk7y9yymjhj2i5218nfvfqb4830pgzzjqz1zdax8rn";
99 };
1010
1111 buildInputs = [ qtscript ];
pkgs/applications/window-managers/qtile/0001-Substitution-vars-for-absolute-paths.patch+2−2
@@ -23,8 +23,8 @@ index f1133555..3e61204a 100644
2323
2424 def _setup_xcursor_binding(self):
2525 try:
26−- xcursor = ffi.dlopen('libxcb-cursor.so')
27−+ xcursor = ffi.dlopen('@xcb-cursor@/lib/libxcb-cursor.so')
26+- xcursor = ffi.dlopen('libxcb-cursor.so.0')
27++ xcursor = ffi.dlopen('@xcb-cursor@/lib/libxcb-cursor.so.0')
2828 except OSError:
2929 logger.warning("xcb-cursor not found, fallback to font pointer")
3030 return False
pkgs/applications/window-managers/qtile/0002-Restore-PATH-and-PYTHONPATH.patch+5−5
@@ -43,13 +43,13 @@ index 5316e0e7..272c6430 100755
4343 from libqtile.scripts import qtile_top
4444 qtile_top.main()
4545diff --git a/libqtile/utils.py b/libqtile/utils.py
46−index 36ed0a58..bca9eab3 100644
46+index 550ed02677e..1358a66f3df 100644
4747--- a/libqtile/utils.py
4848+++ b/libqtile/utils.py
49−@@ -240,3 +240,11 @@ def describe_attributes(obj, attrs, func=None):
50− pairs.append('%s=%s' % (attr, value))
51−
52− return ', '.join(pairs)
49+@@ -272,3 +272,11 @@ def safe_import(module_names, class_name, globals_, fallback=None):
50+ logger.debug("%s", traceback.format_exc())
51+ if fallback:
52+ globals_[class_name] = fallback(module_path, class_name, error)
5353+
5454+
5555+def restore_os_environment():
pkgs/applications/window-managers/qtile/0003-Restart-executable.patch+6−6
@@ -1,13 +1,13 @@
11diff --git a/libqtile/manager.py b/libqtile/manager.py
2−index 36518a74..9b6bdd02 100644
2+index fc198e9bae7..860b97d8db1 100644
33--- a/libqtile/manager.py
44+++ b/libqtile/manager.py
5−@@ -1386,7 +1386,7 @@ class Qtile(command.CommandObject):
5+@@ -1402,7 +1402,7 @@ class Qtile(command.CommandObject):
6+ logger.error("Unable to pickle qtile state")
67 argv = [s for s in argv if not s.startswith('--with-state')]
78 argv.append('--with-state=' + buf.getvalue().decode())
8−
9−- self.cmd_execute(sys.executable, argv)
10−+ self.cmd_execute(os.environ.get("QTILE_WRAPPER", "@out@/bin/qtile"), argv[1:])
9+- self._restart = (sys.executable, argv)
10++ self._restart = (os.environ.get("QTILE_WRAPPER", "@out@/bin/qtile"), argv[1:])
11+ self.stop()
1112
1213 def cmd_spawn(self, cmd):
13− """Run cmd in a shell.
pkgs/applications/window-managers/qtile/default.nix+2−2
@@ -7,13 +7,13 @@ in
77
88python27Packages.buildPythonApplication rec {
99 name = "qtile-${version}";
10− version = "0.10.7";
10+ version = "0.11.1";
1111
1212 src = fetchFromGitHub {
1313 owner = "qtile";
1414 repo = "qtile";
1515 rev = "v${version}";
16− sha256 = "18szgplyym0b65vnaa8nqzadq6q0mhsiky9g5hqhn7xzf4kykmj8";
16+ sha256 = "1jw6mh9m5yrijhm218lc51sc89lc2ihvyx30jhrkxy2mzllhjgrs";
1717 };
1818
1919 patches = [
pkgs/build-support/docker/default.nix+5−11
@@ -52,15 +52,7 @@ rec {
5252 outputHashAlgo = "sha256";
5353 outputHash = sha256;
5454
55− # One of the dependencies of Skopeo uses a hardcoded /var/tmp for storing
56− # big image files, which is not available in sandboxed builds.
57− nativeBuildInputs = lib.singleton (pkgs.skopeo.overrideAttrs (drv: {
58− postPatch = (drv.postPatch or "") + ''
59− sed -i -e 's!/var/tmp!/tmp!g' \
60− vendor/github.com/containers/image/storage/storage_image.go \
61− vendor/github.com/containers/image/internal/tmpdir/tmpdir.go
62− '';
63− }));
55+ nativeBuildInputs = lib.singleton (pkgs.skopeo);
6456 SSL_CERT_FILE = "${pkgs.cacert.out}/etc/ssl/certs/ca-bundle.crt";
6557
6658 sourceURL = "docker://${imageName}@${imageDigest}";
@@ -360,7 +352,9 @@ rec {
360352 extraCommands ? ""
361353 }:
362354 # Generate an executable script from the `runAsRoot` text.
363− let runAsRootScript = shellScript "run-as-root.sh" runAsRoot;
355+ let
356+ runAsRootScript = shellScript "run-as-root.sh" runAsRoot;
357+ extraCommandsScript = shellScript "extra-commands.sh" extraCommands;
364358 in runWithOverlay {
365359 name = "docker-layer-${name}";
366360
@@ -398,7 +392,7 @@ rec {
398392 '';
399393
400394 postUmount = ''
401− (cd layer; eval "${extraCommands}")
395+ (cd layer; ${extraCommandsScript})
402396
403397 echo "Packing layer..."
404398 mkdir $out
pkgs/build-support/docker/examples.nix+12
@@ -124,4 +124,16 @@ rec {
124124 fromImage = nixFromDockerHub;
125125 contents = [ pkgs.hello ];
126126 };
127+
128+ # 8. regression test for erroneous use of eval and string expansion.
129+ # See issue #34779 and PR #40947 for details.
130+ runAsRootExtraCommands = pkgs.dockerTools.buildImage {
131+ name = "runAsRootExtraCommands";
132+ contents = [ pkgs.coreutils ];
133+ # The parens here are to create problematic bash to embed and eval. In case
134+ # this is *embedded* into the script (with nix expansion) the initial quotes
135+ # will close the string and the following parens are unexpected
136+ runAsRoot = ''echo "(runAsRoot)" > runAsRoot'';
137+ extraCommands = ''echo "(extraCommand)" > extraCommands'';
138+ };
127139}
pkgs/development/compilers/colm/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "colm-${version}";
5− version = "0.13.0.5";
5+ version = "0.13.0.6";
66
77 src = fetchurl {
88 url = "http://www.colm.net/files/colm/${name}.tar.gz";
9− sha256 = "1320bx96ycd1xwww137cixrb983838wnrgkfsym8x5bnf5kj9rik";
9+ sha256 = "0jd3qmqdm8yszy0yysbp3syk7pcbxvwzv9mibdwz7v9bv1nrai26";
1010 };
1111
1212 nativeBuildInputs = [ makeWrapper asciidoc ];
pkgs/development/compilers/fstar/default.nix+6−3
@@ -2,13 +2,13 @@
22
33stdenv.mkDerivation rec {
44 name = "fstar-${version}";
5− version = "0.9.5.0";
5+ version = "0.9.6.0";
66
77 src = fetchFromGitHub {
88 owner = "FStarLang";
99 repo = "FStar";
1010 rev = "v${version}";
11− sha256 = "1pi2ny3kpmvm85x8w98anhjf0hp0wccc51m7v697qypn5cl4ydqk";
11+ sha256 = "0wix7l229afkn6c6sk4nwkfq0nznsiqdkds4ixi2yyf72immwmmb";
1212 };
1313
1414 nativeBuildInputs = [ makeWrapper ];
@@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
1616 buildInputs = with ocamlPackages; [
1717 z3 ocaml findlib batteries menhir stdint
1818 zarith camlp4 yojson pprint
19+ ulex ocaml-migrate-parsetree process ppx_deriving ppx_deriving_yojson ocamlbuild
1920 ];
2021
2122 makeFlags = [ "PREFIX=$(out)" ];
@@ -26,8 +27,10 @@ stdenv.mkDerivation rec {
2627 '';
2728 buildFlags = "-C src/ocaml-output";
2829
30+ preInstall = ''
31+ mkdir -p $out/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/fstarlib
32+ '';
2933 installFlags = "-C src/ocaml-output";
30−
3134 postInstall = ''
3235 wrapProgram $out/bin/fstar.exe --prefix PATH ":" "${z3}/bin"
3336 '';
pkgs/development/compilers/ghc/7.10.3.nix+13−3
@@ -24,6 +24,10 @@
2424, # Whether to build dynamic libs for the standard library (on the target
2525 # platform). Static libs are always built.
2626 enableShared ? true
27+
28+, # What flavour to build. An empty string indicates no
29+ # specific flavour and falls back to ghc default values.
30+ ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
2731}:
2832
2933assert !enableIntegerSimple -> gmp != null;
@@ -42,11 +46,14 @@ let
4246 };
4347
4448 buildMK = ''
49+ BuildFlavour = ${ghcFlavour}
50+ ifneq \"\$(BuildFlavour)\" \"\"
51+ include mk/flavours/\$(BuildFlavour).mk
52+ endif
4553 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
4654 '' + stdenv.lib.optionalString enableIntegerSimple ''
4755 INTEGER_LIBRARY = integer-simple
4856 '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
49− BuildFlavour = perf-cross
5057 Stage1Only = YES
5158 HADDOCK_DOCS = NO
5259 '' + stdenv.lib.optionalString enableRelocatedStaticLibs ''
@@ -68,7 +75,6 @@ let
6875 targetCC = builtins.head toolsForTarget;
6976
7077in
71−
7278stdenv.mkDerivation rec {
7379 version = "7.10.3";
7480 name = "${targetPrefix}ghc-${version}";
@@ -87,6 +93,8 @@ stdenv.mkDerivation rec {
8793 ./relocation.patch
8894 ];
8995
96+ postPatch = "patchShebangs .";
97+
9098 # GHC is a bit confused on its cross terminology.
9199 preConfigure = ''
92100 for env in $(env | grep '^TARGET_' | sed -E 's|\+?=.*||'); do
@@ -103,6 +111,7 @@ stdenv.mkDerivation rec {
103111 export RANLIB="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}ranlib"
104112 export READELF="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}readelf"
105113 export STRIP="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}strip"
114+
106115 echo -n "${buildMK}" > mk/build.mk
107116 sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
108117 '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
@@ -133,7 +142,8 @@ stdenv.mkDerivation rec {
133142 strictDeps = true;
134143
135144 nativeBuildInputs = [
136− ghc perl libxml2 libxslt docbook_xsl docbook_xml_dtd_45 docbook_xml_dtd_42 hscolour
145+ perl libxml2 libxslt docbook_xsl docbook_xml_dtd_45 docbook_xml_dtd_42
146+ ghc hscolour
137147 ];
138148
139149 # For building runtime libs
pkgs/development/compilers/ghc/8.0.2.nix+19−5
@@ -23,6 +23,10 @@
2323, # Whether to build dynamic libs for the standard library (on the target
2424 # platform). Static libs are always built.
2525 enableShared ? true
26+
27+, # What flavour to build. An empty string indicates no
28+ # specific flavour and falls back to ghc default values.
29+ ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
2630}:
2731
2832assert !enableIntegerSimple -> gmp != null;
@@ -36,11 +40,14 @@ let
3640 "${targetPlatform.config}-";
3741
3842 buildMK = ''
43+ BuildFlavour = ${ghcFlavour}
44+ ifneq \"\$(BuildFlavour)\" \"\"
45+ include mk/flavours/\$(BuildFlavour).mk
46+ endif
3947 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
4048 '' + stdenv.lib.optionalString enableIntegerSimple ''
4149 INTEGER_LIBRARY = integer-simple
4250 '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
43− BuildFlavour = perf-cross
4451 Stage1Only = YES
4552 HADDOCK_DOCS = NO
4653 '' + stdenv.lib.optionalString enableRelocatedStaticLibs ''
@@ -87,6 +94,8 @@ stdenv.mkDerivation rec {
8794 ++ stdenv.lib.optional stdenv.isDarwin ./ghc-8.0.2-no-cpp-warnings.patch
8895 ++ stdenv.lib.optional stdenv.isDarwin ./backport-dylib-command-size-limit.patch;
8996
97+ postPatch = "patchShebangs .";
98+
9099 # GHC is a bit confused on its cross terminology.
91100 preConfigure = ''
92101 for env in $(env | grep '^TARGET_' | sed -E 's|\+?=.*||'); do
@@ -103,6 +112,7 @@ stdenv.mkDerivation rec {
103112 export RANLIB="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}ranlib"
104113 export READELF="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}readelf"
105114 export STRIP="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}strip"
115+
106116 echo -n "${buildMK}" > mk/build.mk
107117 sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
108118 '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
@@ -132,7 +142,10 @@ stdenv.mkDerivation rec {
132142 # Make sure we never relax`$PATH` and hooks support for compatability.
133143 strictDeps = true;
134144
135− nativeBuildInputs = [ ghc perl hscolour sphinx ];
145+ nativeBuildInputs = [
146+ perl sphinx
147+ ghc hscolour
148+ ];
136149
137150 # For building runtime libs
138151 depsBuildTarget = toolsForTarget;
@@ -149,10 +162,11 @@ stdenv.mkDerivation rec {
149162 # that in turn causes GHCi to abort
150163 stripDebugFlags = [ "-S" ] ++ stdenv.lib.optional (!targetPlatform.isDarwin) "--keep-file-symbols";
151164
152− # zsh and other shells are smart about `{ghc}` but bash isn't, and doesn't
153− # treat that as a unary `{x,y,z,..}` repetition.
154165 postInstall = ''
155− paxmark m $out/lib/${name}/bin/${if targetPlatform != hostPlatform then "ghc" else "{ghc,haddock}"}
166+ for bin in "$out"/lib/${name}/bin/*; do
167+ isELF "$bin" || continue
168+ paxmark m "$bin"
169+ done
156170
157171 # Install the bash completion file.
158172 install -D -m 444 utils/completion/ghc.bash $out/share/bash-completion/completions/${targetPrefix}ghc
pkgs/development/compilers/ghc/8.2.2.nix+17−9
@@ -23,10 +23,11 @@
2323
2424, # Whether to build dynamic libs for the standard library (on the target
2525 # platform). Static libs are always built.
26− enableShared ?
27− !(targetPlatform.isDarwin
28− # On iOS, dynamic linking is not supported
29− && (targetPlatform.isAarch64 || targetPlatform.isAarch32))
26+ enableShared ? true
27+
28+, # What flavour to build. An empty string indicates no
29+ # specific flavour and falls back to ghc default values.
30+ ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
3031, # Whether to backport https://phabricator.haskell.org/D4388 for
3132 # deterministic profiling symbol names, at the cost of a slightly
3233 # non-standard GHC API
@@ -44,11 +45,14 @@ let
4445 "${targetPlatform.config}-";
4546
4647 buildMK = ''
48+ BuildFlavour = ${ghcFlavour}
49+ ifneq \"\$(BuildFlavour)\" \"\"
50+ include mk/flavours/\$(BuildFlavour).mk
51+ endif
4752 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
4853 '' + stdenv.lib.optionalString enableIntegerSimple ''
4954 INTEGER_LIBRARY = integer-simple
5055 '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
51− BuildFlavour = perf-cross
5256 Stage1Only = YES
5357 HADDOCK_DOCS = NO
5458 BUILD_SPHINX_HTML = NO
@@ -151,7 +155,10 @@ stdenv.mkDerivation rec {
151155 # Make sure we never relax`$PATH` and hooks support for compatability.
152156 strictDeps = true;
153157
154− nativeBuildInputs = [ alex autoconf autoreconfHook automake ghc happy hscolour perl python3 sphinx ];
158+ nativeBuildInputs = [
159+ autoconf autoreconfHook automake perl python3 sphinx
160+ ghc alex happy hscolour
161+ ];
155162
156163 # For building runtime libs
157164 depsBuildTarget = toolsForTarget;
@@ -173,10 +180,11 @@ stdenv.mkDerivation rec {
173180
174181 hardeningDisable = [ "format" ];
175182
176− # zsh and other shells are smart about `{ghc}` but bash isn't, and doesn't
177− # treat that as a unary `{x,y,z,..}` repetition.
178183 postInstall = ''
179− paxmark m $out/lib/${name}/bin/${if targetPlatform != hostPlatform then "ghc" else "{ghc,haddock}"}
184+ for bin in "$out"/lib/${name}/bin/*; do
185+ isELF "$bin" || continue
186+ paxmark m "$bin"
187+ done
180188
181189 # Install the bash completion file.
182190 install -D -m 444 utils/completion/ghc.bash $out/share/bash-completion/completions/${targetPrefix}ghc
pkgs/development/compilers/ghc/8.4.2.nix+25−13
@@ -3,7 +3,7 @@
33
44# build-tools
55, bootPkgs, alex, happy
6−, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3
6+, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3, m4
77
88, libffi, libiconv ? null, ncurses
99
@@ -15,16 +15,21 @@
1515
1616, # If enabled, GHC will be built with the GPL-free but slower integer-simple
1717 # library instead of the faster but GPLed integer-gmp library.
18− enableIntegerSimple ? false, gmp ? null, m4
18+ enableIntegerSimple ? false, gmp ? null
1919
2020, # If enabled, use -fPIC when compiling static libs.
2121 enableRelocatedStaticLibs ? targetPlatform != hostPlatform
2222
2323, # Whether to build dynamic libs for the standard library (on the target
2424 # platform). Static libs are always built.
25− enableShared ? !targetPlatform.useAndroidPrebuilt
25+ enableShared ? !targetPlatform.isWindows && !targetPlatform.useAndroidPrebuilt
2626
27−, version ? "8.4.2"
27+, # Whetherto build terminfo.
28+ enableTerminfo ? !targetPlatform.isWindows
29+
30+, # What flavour to build. An empty string indicates no
31+ # specific flavour and falls back to ghc default values.
32+ ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
2833}:
2934
3035assert !enableIntegerSimple -> gmp != null;
@@ -38,11 +43,14 @@ let
3843 "${targetPlatform.config}-";
3944
4045 buildMK = ''
46+ BuildFlavour = ${ghcFlavour}
47+ ifneq \"\$(BuildFlavour)\" \"\"
48+ include mk/flavours/\$(BuildFlavour).mk
49+ endif
4150 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
4251 '' + stdenv.lib.optionalString enableIntegerSimple ''
4352 INTEGER_LIBRARY = integer-simple
4453 '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
45− BuildFlavour = perf-cross
4654 Stage1Only = YES
4755 HADDOCK_DOCS = NO
4856 BUILD_SPHINX_HTML = NO
@@ -55,9 +63,9 @@ let
5563 '';
5664
5765 # Splicer will pull out correct variations
58− libDeps = platform: [ ncurses ]
66+ libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ]
5967 ++ stdenv.lib.optional (!enableIntegerSimple) gmp
60− ++ stdenv.lib.optional (platform.libc != "glibc") libiconv;
68+ ++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;
6169
6270 toolsForTarget =
6371 if hostPlatform == buildPlatform then
@@ -69,7 +77,7 @@ let
6977
7078in
7179stdenv.mkDerivation rec {
72− inherit version;
80+ version = "8.4.2";
7381 name = "${targetPrefix}ghc-${version}";
7482
7583 src = fetchurl {
@@ -126,7 +134,7 @@ stdenv.mkDerivation rec {
126134 "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
127135 ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && ! enableIntegerSimple) [
128136 "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib"
129− ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc") [
137+ ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc" && !targetPlatform.isWindows) [
130138 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
131139 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
132140 "--enable-bootstrap-with-devel-snapshot"
@@ -142,7 +150,10 @@ stdenv.mkDerivation rec {
142150 # Make sure we never relax`$PATH` and hooks support for compatability.
143151 strictDeps = true;
144152
145− nativeBuildInputs = [ ghc perl autoconf automake m4 happy alex python3 ];
153+ nativeBuildInputs = [
154+ perl autoconf automake m4 python3
155+ ghc alex happy
156+ ];
146157
147158 # For building runtime libs
148159 depsBuildTarget = toolsForTarget;
@@ -161,10 +172,11 @@ stdenv.mkDerivation rec {
161172
162173 checkTarget = "test";
163174
164− # zsh and other shells are smart about `{ghc}` but bash isn't, and doesn't
165− # treat that as a unary `{x,y,z,..}` repetition.
166175 postInstall = ''
167− paxmark m $out/lib/${name}/bin/${if targetPlatform != hostPlatform then "ghc" else "{ghc,haddock}"}
176+ for bin in "$out"/lib/${name}/bin/*; do
177+ isELF "$bin" || continue
178+ paxmark m "$bin"
179+ done
168180
169181 # Install the bash completion file.
170182 install -D -m 444 utils/completion/ghc.bash $out/share/bash-completion/completions/${targetPrefix}ghc
pkgs/development/compilers/ghc/head.nix+23−10
@@ -3,7 +3,7 @@
33
44# build-tools
55, bootPkgs, alex, happy
6−, autoconf, automake, coreutils, fetchgit, perl, python3
6+, autoconf, automake, coreutils, fetchgit, perl, python3, m4
77
88, libffi, libiconv ? null, ncurses
99
@@ -22,9 +22,15 @@
2222
2323, # Whether to build dynamic libs for the standard library (on the target
2424 # platform). Static libs are always built.
25− enableShared ? !targetPlatform.useAndroidPrebuilt
25+ enableShared ? !targetPlatform.isWindows && !targetPlatform.useAndroidPrebuilt
26+
27+, # Whetherto build terminfo.
28+ enableTerminfo ? !targetPlatform.isWindows
2629
2730, version ? "8.5.20180118"
31+, # What flavour to build. An empty string indicates no
32+ # specific flavour and falls back to ghc default values.
33+ ghcFlavour ? stdenv.lib.optionalString (targetPlatform != hostPlatform) "perf-cross"
2834}:
2935
3036assert !enableIntegerSimple -> gmp != null;
@@ -38,11 +44,14 @@ let
3844 "${targetPlatform.config}-";
3945
4046 buildMK = ''
47+ BuildFlavour = ${ghcFlavour}
48+ ifneq \"\$(BuildFlavour)\" \"\"
49+ include mk/flavours/\$(BuildFlavour).mk
50+ endif
4151 DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
4252 '' + stdenv.lib.optionalString enableIntegerSimple ''
4353 INTEGER_LIBRARY = integer-simple
4454 '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
45− BuildFlavour = perf-cross
4655 Stage1Only = YES
4756 HADDOCK_DOCS = NO
4857 BUILD_SPHINX_HTML = NO
@@ -55,9 +64,9 @@ let
5564 '';
5665
5766 # Splicer will pull out correct variations
58− libDeps = platform: [ ncurses ]
67+ libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ]
5968 ++ stdenv.lib.optional (!enableIntegerSimple) gmp
60− ++ stdenv.lib.optional (platform.libc != "glibc") libiconv;
69+ ++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;
6170
6271 toolsForTarget =
6372 if hostPlatform == buildPlatform then
@@ -123,7 +132,7 @@ stdenv.mkDerivation rec {
123132 "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
124133 ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && ! enableIntegerSimple) [
125134 "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib"
126− ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc") [
135+ ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc" && !targetPlatform.isWindows) [
127136 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
128137 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
129138 "--enable-bootstrap-with-devel-snapshot"
@@ -139,7 +148,10 @@ stdenv.mkDerivation rec {
139148 # Make sure we never relax`$PATH` and hooks support for compatability.
140149 strictDeps = true;
141150
142− nativeBuildInputs = [ ghc perl autoconf automake happy alex python3 ];
151+ nativeBuildInputs = [
152+ perl autoconf automake m4 python3
153+ ghc alex happy
154+ ];
143155
144156 # For building runtime libs
145157 depsBuildTarget = toolsForTarget;
@@ -158,10 +170,11 @@ stdenv.mkDerivation rec {
158170
159171 checkTarget = "test";
160172
161− # zsh and other shells are smart about `{ghc}` but bash isn't, and doesn't
162− # treat that as a unary `{x,y,z,..}` repetition.
163173 postInstall = ''
164− paxmark m $out/lib/${name}/bin/${if targetPlatform != hostPlatform then "ghc" else "{ghc,haddock}"}
174+ for bin in "$out"/lib/${name}/bin/*; do
175+ isELF "$bin" || continue
176+ paxmark m "$bin"
177+ done
165178
166179 # Install the bash completion file.
167180 install -D -m 444 utils/completion/ghc.bash $out/share/bash-completion/completions/${targetPrefix}ghc
pkgs/development/haskell-modules/configuration-nix.nix+1−1
@@ -128,7 +128,7 @@ self: super: builtins.intersectAttrs super {
128128
129129 # Prevents needing to add security_tool as a build tool to all of x509-system's
130130 # dependencies.
131− x509-system = if pkgs.stdenv.isDarwin && !pkgs.stdenv.cc.nativeLibc
131+ x509-system = if pkgs.stdenv.targetPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc
132132 then let inherit (pkgs.darwin) security_tool;
133133 in pkgs.lib.overrideDerivation (addBuildDepend super.x509-system security_tool) (drv: {
134134 postPatch = (drv.postPatch or "") + ''
pkgs/development/haskell-modules/generic-builder.nix+58−17
@@ -19,6 +19,7 @@ in
1919, buildTarget ? ""
2020, buildTools ? [], libraryToolDepends ? [], executableToolDepends ? [], testToolDepends ? [], benchmarkToolDepends ? []
2121, configureFlags ? []
22+, buildFlags ? []
2223, description ? ""
2324, doCheck ? !isCross && stdenv.lib.versionOlder "7.4" ghc.version
2425, doBenchmark ? false
@@ -31,7 +32,7 @@ in
3132, enableSharedExecutables ? false
3233, enableSharedLibraries ? ((ghc.isGhcjs or false) || stdenv.lib.versionOlder "7.7" ghc.version)
3334, enableDeadCodeElimination ? (!stdenv.isDarwin) # TODO: use -dead_strip for darwin
34−, enableStaticLibraries ? true
35+, enableStaticLibraries ? !hostPlatform.isWindows
3536, enableHsc2hsViaAsm ? hostPlatform.isWindows && stdenv.lib.versionAtLeast ghc.version "8.4"
3637, extraLibraries ? [], librarySystemDepends ? [], executableSystemDepends ? []
3738, homepage ? "http://hackage.haskell.org/package/${pname}"
@@ -68,6 +69,10 @@ in
6869
6970assert editedCabalFile != null -> revision != null;
7071
72+# --enable-static does not work on windows. This is a bug in GHC.
73+# --enable-static will pass -staticlib to ghc, which only works for mach-o and elf.
74+assert hostPlatform.isWindows -> enableStaticLibraries == false;
75+
7176let
7277
7378 inherit (stdenv.lib) optional optionals optionalString versionOlder versionAtLeast
@@ -126,6 +131,8 @@ let
126131 crossCabalFlagsString =
127132 stdenv.lib.optionalString isCross (" " + stdenv.lib.concatStringsSep " " crossCabalFlags);
128133
134+ buildFlagsString = optionalString (buildFlags != []) (" " + concatStringsSep " " buildFlags);
135+
129136 defaultConfigureFlags = [
130137 "--verbose" "--prefix=$out" "--libdir=\\$prefix/lib/\\$compiler" "--libsubdir=\\$pkgid"
131138 (optionalString enableSeparateDataOutput "--datadir=$data/share/${ghc.name}")
@@ -169,18 +176,22 @@ let
169176 optionals doCheck testPkgconfigDepends ++ optionals doBenchmark benchmarkPkgconfigDepends;
170177
171178 nativeBuildInputs = [ ghc nativeGhc removeReferencesTo ] ++ optional (allPkgconfigDepends != []) pkgconfig ++
179+ setupHaskellDepends ++
172180 buildTools ++ libraryToolDepends ++ executableToolDepends;
173181 propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
174− otherBuildInputs = setupHaskellDepends ++ extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++
182+ otherBuildInputs = extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++
175183 allPkgconfigDepends ++
176184 optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
177185 optionals doBenchmark (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
186+
178187 allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
179188
180189 haskellBuildInputs = stdenv.lib.filter isHaskellPkg allBuildInputs;
181190 systemBuildInputs = stdenv.lib.filter isSystemPkg allBuildInputs;
182191
183− ghcEnv = ghc.withPackages (p: haskellBuildInputs);
192+ # When not cross compiling, also include Setup.hs dependencies.
193+ ghcEnv = ghc.withPackages (p:
194+ haskellBuildInputs ++ stdenv.lib.optional (!isCross) setupHaskellDepends);
184195
185196 setupCommand = "./Setup";
186197
@@ -190,6 +201,25 @@ let
190201
191202 nativeGhcCommand = "${nativeGhc.targetPrefix}ghc";
192203
204+ buildPkgDb = ghcName: ''
205+ if [ -d "$p/lib/${ghcName}/package.conf.d" ]; then
206+ cp -f "$p/lib/${ghcName}/package.conf.d/"*.conf $packageConfDir/
207+ continue
208+ fi
209+ if [ -d "$p/include" ]; then
210+ configureFlags+=" --extra-include-dirs=$p/include"
211+ fi
212+ if [ -d "$p/lib" ]; then
213+ configureFlags+=" --extra-lib-dirs=$p/lib"
214+ fi
215+ ''
216+ # It is not clear why --extra-framework-dirs does work fine on Linux
217+ + optionalString (!buildPlatform.isDarwin || versionAtLeast nativeGhc.version "8.0") ''
218+ if [[ -d "$p/Library/Frameworks" ]]; then
219+ configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
220+ fi
221+ '';
222+
193223in
194224
195225assert allPkgconfigDepends != [] -> pkgconfig != null;
@@ -230,30 +260,37 @@ stdenv.mkDerivation ({
230260 echo "Build with ${ghc}."
231261 ${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${hscolour}/bin:$PATH"}
232262
263+ '' + (optionalString (setupHaskellDepends != []) ''
264+ setupPackageConfDir="$TMPDIR/setup-package.conf.d"
265+ mkdir -p $setupPackageConfDir
266+ '') + ''
233267 packageConfDir="$TMPDIR/package.conf.d"
234268 mkdir -p $packageConfDir
235269
236270 setupCompileFlags="${concatStringsSep " " setupCompileFlags}"
237271 configureFlags="${concatStringsSep " " defaultConfigureFlags} $configureFlags"
272+ ''
273+ # We build the Setup.hs on the *build* machine, and as such should only add
274+ # dependencies for the build machine.
275+ #
276+ # pkgs* arrays defined in stdenv/setup.hs
277+ + (optionalString (setupHaskellDepends != []) ''
278+ for p in "''${pkgsBuildBuild[@]}" "''${pkgsBuildHost[@]}" "''${pkgsBuildTarget[@]}"; do
279+ ${buildPkgDb nativeGhc.name}
280+ done
281+ ${nativeGhcCommand}-pkg --${nativePackageDbFlag}="$setupPackageConfDir" recache
282+ '')
238283
239− # host.*Pkgs defined in stdenv/setup.hs
284+ # For normal components
285+ + ''
240286 for p in "''${pkgsHostHost[@]}" "''${pkgsHostTarget[@]}"; do
241− if [ -d "$p/lib/${ghc.name}/package.conf.d" ]; then
242− cp -f "$p/lib/${ghc.name}/package.conf.d/"*.conf $packageConfDir/
243− continue
244− fi
245− if [ -d "$p/include" ]; then
246− configureFlags+=" --extra-include-dirs=$p/include"
247− fi
248− if [ -d "$p/lib" ]; then
249− configureFlags+=" --extra-lib-dirs=$p/lib"
250− fi
287+ ${buildPkgDb ghc.name}
251288 done
252289 ''
253290 # only use the links hack if we're actually building dylibs. otherwise, the
254291 # "dynamic-library-dirs" point to nonexistent paths, and the ln command becomes
255292 # "ln -s $out/lib/links", which tries to recreate the links dir and fails
256− + (optionalString (stdenv.isDarwin && enableSharedLibraries) ''
293+ + (optionalString (stdenv.isDarwin && (enableSharedLibraries || enableSharedExecutables)) ''
257294 # Work around a limit in the macOS Sierra linker on the number of paths
258295 # referenced by any one dynamic library:
259296 #
@@ -282,7 +319,11 @@ stdenv.mkDerivation ({
282319 done
283320
284321 echo setupCompileFlags: $setupCompileFlags
285− ${nativeGhcCommand} $setupCompileFlags --make -o Setup -odir $TMPDIR -hidir $TMPDIR $i
322+ ${optionalString (setupHaskellDepends != [])
323+ ''
324+ echo GHC_PACKAGE_PATH="$setupPackageConfDir:"
325+ GHC_PACKAGE_PATH="$setupPackageConfDir:" ''
326+ }${nativeGhcCommand} $setupCompileFlags --make -o Setup -odir $TMPDIR -hidir $TMPDIR $i
286327
287328 runHook postCompileBuildDriver
288329 '';
@@ -310,7 +351,7 @@ stdenv.mkDerivation ({
310351
311352 buildPhase = ''
312353 runHook preBuild
313− ${setupCommand} build ${buildTarget}${crossCabalFlagsString}
354+ ${setupCommand} build ${buildTarget}${crossCabalFlagsString}${buildFlagsString}
314355 runHook postBuild
315356 '';
316357
pkgs/development/haskell-modules/lib.nix+2
@@ -131,6 +131,8 @@ rec {
131131 */
132132 appendConfigureFlag = drv: x: overrideCabal drv (drv: { configureFlags = (drv.configureFlags or []) ++ [x]; });
133133
134+ appendBuildFlag = drv: x: overrideCabal drv (drv: { buildFlags = (drv.buildFlags or []) ++ [x]; });
135+ appendBuildFlags = drv: xs: overrideCabal drv (drv: { buildFlags = (drv.buildFlags or []) ++ xs; });
134136 /* removeConfigureFlag drv x is a Haskell package like drv, but with
135137 all cabal configure arguments that are equal to x removed.
136138
pkgs/development/libraries/fplll/default.nix+2−2
@@ -4,12 +4,12 @@
44stdenv.mkDerivation rec {
55 name = "${pname}-${version}";
66 pname = "fplll";
7− version = "5.2.0";
7+ version = "5.2.1";
88 src = fetchFromGitHub {
99 owner = "${pname}";
1010 repo = "${pname}";
1111 rev = "${version}";
12− sha256 = "0931i4q49lzlifsg9zd8a2yzj626i1s2bqhkfxvcxv94c38s0nh1";
12+ sha256 = "015qmrd7nfaysbv1hbwiprz9g6hnww1y1z1xw8f43ysb7k1b5nbg";
1313 };
1414 nativeBuildInputs = [autoconf automake libtool gettext autoreconfHook];
1515 buildInputs = [gmp mpfr];
pkgs/development/libraries/libqalculate/default.nix+2−2
@@ -3,11 +3,11 @@
33
44stdenv.mkDerivation rec {
55 name = "libqalculate-${version}";
6− version = "2.3.0";
6+ version = "2.5.0";
77
88 src = fetchurl {
99 url = "https://github.com/Qalculate/libqalculate/archive/v${version}.tar.gz";
10− sha256 = "1wrd9ajf00h1ja56r25vljjsgklg0qlzmziax7x26wjqkigc28iq";
10+ sha256 = "0xs2qjr93k43p6j126xj20fgb1n2jv56rhgc211yv1l46crbqxfv";
1111 };
1212
1313 outputs = [ "out" "dev" "doc" ];
pkgs/development/libraries/zookeeper_mt/default.nix+1−1
@@ -1,7 +1,7 @@
11{ stdenv, zookeeper, bash }:
22
33stdenv.mkDerivation rec {
4− name = "zookeeper_mt";
4+ name = "zookeeper_mt-${stdenv.lib.getVersion zookeeper}";
55
66 src = zookeeper.src;
77
pkgs/development/libraries/zziplib/default.nix−2
@@ -13,8 +13,6 @@ stdenv.mkDerivation rec {
1313 sed -i -e s,--export-dynamic,, configure
1414 '';
1515
16− # TODO: still an issue: https://github.com/gdraheim/zziplib/issues/27
17−
1816 buildInputs = [ docbook_xml_dtd_412 perl python2 zip xmlto zlib ];
1917
2018 # tests are broken (https://github.com/gdraheim/zziplib/issues/20),
pkgs/development/ocaml-modules/earley_ocaml/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, which, ocaml, findlib, ocamlbuild, earley }:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.0.2";
5+ name = "ocaml${ocaml.version}-earley_ocaml-${version}";
6+ src = fetchFromGitHub {
7+ owner = "rlepigre";
8+ repo = "ocaml-earley-ocaml";
9+ rev = "ocaml-earley-ocaml_${version}";
10+ sha256 = "0f8kr49r2xfs7cbzps4r9i92ckhwssaiydam846jrky3z5djn2jc";
11+ };
12+
13+ buildInputs = [ which ocaml findlib ocamlbuild ];
14+
15+ propagatedBuildInputs = [ earley ];
16+
17+ preBuild = "make";
18+
19+ createFindlibDestdir = true;
20+
21+ installFlags = [ "BINDIR=$(out)/bin" ];
22+
23+ meta = {
24+ description = "Extensible OCaml parser to be used with Earley";
25+ license = stdenv.lib.licenses.cecill-b;
26+ maintainers = [ stdenv.lib.maintainers.vbgl ];
27+ inherit (ocaml.meta) platforms;
28+ inherit (src.meta) homepage;
29+ };
30+}
pkgs/development/python-modules/django-allauth/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
2+, django, python-openid, mock, coverage }:
3+
4+buildPythonPackage rec {
5+ pname = "django-allauth";
6+ name = "${pname}-${version}";
7+ version = "0.36.0";
8+
9+ # no tests on PyPI
10+ src = fetchFromGitHub {
11+ owner = "pennersr";
12+ repo = pname;
13+ rev = version;
14+ sha256 = "1c863cmd521j6cwpyd50jxz5y62fdschrhm15jfqihicyr9imjan";
15+ };
16+
17+ propagatedBuildInputs = [ requests requests_oauthlib django python-openid ];
18+
19+ checkInputs = [ coverage mock ];
20+
21+ doCheck = false;
22+ checkPhase = ''
23+ cd $NIX_BUILD_TOP/$sourceRoot
24+ coverage run manage.py test allauth
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication";
29+ homepage = https://www.intenct.nl/projects/django-allauth;
30+ license = licenses.mit;
31+ };
32+}
pkgs/development/python-modules/django-gravatar2/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "django-gravatar2";
5+ name = "${pname}-${version}";
6+ version = "1.4.2";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1qsv40xywbqsf4mkrmsswrpzqd7nfljxpfiim9an2z3dykn5rka6";
11+ };
12+
13+ doCheck = false;
14+
15+ meta = with stdenv.lib; {
16+ description = "Essential Gravatar support for Django";
17+ homepage = https://github.com/twaddington/django-gravatar;
18+ license = licenses.mit;
19+ };
20+}
pkgs/development/python-modules/fpylll/default.nix+7−5
@@ -1,5 +1,5 @@
11{ lib
2−, fetchPypi
2+, fetchFromGitHub
33, buildPythonPackage
44, pkgconfig
55, gmp
@@ -14,11 +14,13 @@
1414
1515buildPythonPackage rec {
1616 pname = "fpylll";
17− version = "0.3.0dev";
17+ version = "0.4.1dev";
1818
19− src = fetchPypi {
20− inherit pname version;
21− sha256 = "0bjkh02fnxsrxwjzai8ij12zl2wq319z8y25sn9pvvzla5izgnp9";
19+ src = fetchFromGitHub {
20+ owner = "fplll";
21+ repo = "fpylll";
22+ rev = version;
23+ sha256 = "01x2sqdv0sbjj4g4waj0hj4rcn4bq7h17442xaqwbznym9azmn9w";
2224 };
2325
2426 buildInputs = [
pkgs/development/python-modules/jedi/default.nix+2−2
@@ -2,12 +2,12 @@
22
33buildPythonPackage rec {
44 pname = "jedi";
5− version = "0.11.1";
5+ version = "0.12.0";
66 name = "${pname}-${version}";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "d6e799d04d1ade9459ed0f20de47c32f2285438956a677d083d3c98def59fa97";
10+ sha256 = "1bcr7csx4xil1iwmk03d79jis0bkmgi9k0kir3xa4rmwqsagcwhr";
1111 };
1212
1313 postPatch = ''
pkgs/development/tools/mypy/default.nix → pkgs/development/python-modules/mypy/default.nixrenamed+4−2
@@ -1,6 +1,6 @@
1−{ stdenv, fetchPypi, buildPythonApplication, lxml, typed-ast, psutil }:
1+{ stdenv, fetchPypi, buildPythonPackage, lxml, typed-ast, psutil, isPy3k }:
22
3−buildPythonApplication rec {
3+buildPythonPackage rec {
44 pname = "mypy";
55 version = "0.600";
66
@@ -12,6 +12,8 @@ buildPythonApplication rec {
1212 sha256 = "1pd3kkz435wlvi9fwqbi3xag5zs59jcjqi6c9gzdjdn23friq9dw";
1313 };
1414
15+ disabled = !isPy3k;
16+
1517 propagatedBuildInputs = [ lxml typed-ast psutil ];
1618
1719 meta = with stdenv.lib; {
pkgs/development/python-modules/parso/default.nix+3−3
@@ -6,12 +6,12 @@
66
77buildPythonPackage rec {
88 pname = "parso";
9− version = "0.1.1";
9+ version = "0.2.0";
1010 name = "${pname}-${version}";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "5815f3fe254e5665f3c5d6f54f086c2502035cb631a91341591b5a564203cffb";
14+ sha256 = "0lamywk6dm5xshlkdvxxf5j6fa2k2zpi7xagf0bwidaay3vnpgb2";
1515 };
1616
1717 checkInputs = [ pytest ];
@@ -22,4 +22,4 @@ buildPythonPackage rec {
2222 license = lib.licenses.mit;
2323 };
2424
25−}
25+}
pkgs/development/python-modules/pyls-isort/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ lib, buildPythonPackage, fetchFromGitHub
2+, python-language-server, isort
3+}:
4+
5+buildPythonPackage rec {
6+ pname = "pyls-isort";
7+ version = "0.1.1";
8+
9+ src = fetchFromGitHub {
10+ owner = "paradoxxxzero";
11+ repo = "pyls-isort";
12+ rev = version;
13+ sha256 = "0mf8c6dw5lsj9np20p0vrhr1yfycq2awjk2pil28l579xj9nr0dc";
14+ };
15+
16+ # no tests
17+ doCheck = false;
18+
19+ propagatedBuildInputs = [
20+ isort python-language-server
21+ ];
22+
23+ meta = with lib; {
24+ homepage = https://github.com/palantir/python-language-server;
25+ description = "An implementation of the Language Server Protocol for Python";
26+ license = licenses.mit;
27+ maintainers = [ maintainers.mic92 ];
28+ };
29+}
pkgs/development/python-modules/pyls-mypy/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
2+, future, python-language-server, mypy, configparser
3+, pytest, mock, isPy3k, pytestcov, coverage
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "pyls-mypy";
8+ version = "0.1.2";
9+
10+ src = fetchFromGitHub {
11+ owner = "tomv564";
12+ repo = "pyls-mypy";
13+ rev = version;
14+ sha256 = "0wa038a8a8yj3wmrc7q909nj4b5d3lq70ysbw7rpsnyb0x06m826";
15+ };
16+
17+ disabled = !isPy3k;
18+
19+ patches = [
20+ # also part of https://github.com/tomv564/pyls-mypy/pull/10
21+ (fetchpatch {
22+ url = "https://github.com/Mic92/pyls-mypy/commit/4c727120d2cbd8bf2825e1491cd55175f03266d2.patch";
23+ sha256 = "1dgn5z742swpxwknmgvm65jpxq9zwzhggw4nl6ys7yw8r49kqgrl";
24+ })
25+ ];
26+
27+ checkPhase = ''
28+ HOME=$TEMPDIR pytest
29+ '';
30+
31+ checkInputs = [ pytest mock pytestcov coverage ];
32+
33+ propagatedBuildInputs = [
34+ mypy python-language-server future configparser
35+ ];
36+
37+ meta = with lib; {
38+ homepage = https://github.com/palantir/python-language-server;
39+ description = "An implementation of the Language Server Protocol for Python";
40+ license = licenses.mit;
41+ maintainers = [ maintainers.mic92 ];
42+ };
43+}
pkgs/development/python-modules/pynmea2/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ lib, buildPythonPackage, fetchPypi, pytest }:
2+
3+buildPythonPackage rec {
4+ pname = "pynmea2";
5+ version = "1.12.0";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "185wxn8gag9whxmysspbh8s7wn3sh1glgf508w2zzwi4lklryl7i";
10+ };
11+
12+ checkInputs = [ pytest ];
13+ checkPhase = "pytest";
14+
15+ meta = {
16+ homepage = https://github.com/Knio/pynmea2;
17+ description = "Python library for the NMEA 0183 protcol";
18+ license = lib.licenses.mit;
19+ maintainers = with lib.maintainers; [ geistesk ];
20+ };
21+}
pkgs/development/python-modules/python-language-server/default.nixnew file+48
@@ -0,0 +1,48 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
2+, configparser, futures, future, jedi, pluggy
3+, pytest, mock, pytestcov, coverage
4+# The following packages are optional and
5+# can be overwritten with null as your liking.
6+# This also requires to disable tests.
7+, rope ? null
8+, mccabe ? null
9+, pyflakes ? null
10+, pycodestyle ? null
11+, autopep8 ? null
12+, yapf ? null
13+, pydocstyle ? null
14+}:
15+
16+buildPythonPackage rec {
17+ pname = "python-language-server";
18+ version = "0.18.0";
19+
20+ src = fetchFromGitHub {
21+ owner = "palantir";
22+ repo = "python-language-server";
23+ rev = version;
24+ sha256 = "0ig34bc0qm6gdj8xakmm3877lmf8ms7qg0xj8hay9gpgf8cz894s";
25+ };
26+
27+ checkInputs = [
28+ pytest mock pytestcov coverage
29+ # rope is technically a dependency, but we don't add it by default since we
30+ # already have jedi, which is the preferred option
31+ rope
32+ ];
33+ checkPhase = ''
34+ HOME=$TEMPDIR pytest
35+ '';
36+
37+ propagatedBuildInputs = [
38+ jedi pluggy mccabe pyflakes pycodestyle yapf pydocstyle future autopep8
39+ ] ++ lib.optional (isPy27) [ configparser ]
40+ ++ lib.optional (pythonOlder "3.2") [ futures ];
41+
42+ meta = with lib; {
43+ homepage = https://github.com/palantir/python-language-server;
44+ description = "An implementation of the Language Server Protocol for Python";
45+ license = licenses.mit;
46+ maintainers = [ maintainers.mic92 ];
47+ };
48+}
pkgs/development/python-modules/python-openid/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "python-openid";
5+ name = "${pname}-${version}";
6+ version = "2.2.5";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj";
11+ };
12+
13+ doCheck = false;
14+
15+ meta = with stdenv.lib; {
16+ description = "OpenID support for modern servers and consumers";
17+ homepage = http://github.com/openid/python-openid;
18+ license = licenses.asl20;
19+ };
20+}
pkgs/development/python-modules/python3-openid/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, buildPythonPackage, fetchPypi, defusedxml }:
2+
3+buildPythonPackage rec {
4+ pname = "python3-openid";
5+ name = "${pname}-${version}";
6+ version = "3.1.0";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2";
11+ };
12+
13+ propagatedBuildInputs = [ defusedxml ];
14+
15+ doCheck = false;
16+
17+ meta = with stdenv.lib; {
18+ description = "OpenID support for modern servers and consumers";
19+ homepage = http://github.com/necaris/python3-openid;
20+ license = licenses.asl20;
21+ };
22+}
pkgs/development/python-modules/raven/default.nix+2−2
@@ -4,13 +4,13 @@
44
55buildPythonPackage rec {
66 pname = "raven";
7− version = "6.7.0";
7+ version = "6.8.0";
88
99 src = fetchFromGitHub {
1010 owner = "getsentry";
1111 repo = "raven-python";
1212 rev = version;
13− sha256 = "0vb6zczfgrrh0qw5wlbvk703r11y091k6r53fbbhpbwh4hva30nx";
13+ sha256 = "0d052nns0pf1bsazapnnrylvair37vhnjaifsdldddqv05ccfc57";
1414 };
1515
1616 # way too many dependencies to run tests
pkgs/development/python-modules/torchvision/default.nix+4−3
@@ -4,10 +4,11 @@
44, numpy
55, pillow
66, pytorch
7−, lib }:
7+, lib
8+}:
89
910buildPythonPackage rec {
10− version = "0.1.9";
11+ version = "0.2.1";
1112 pname = "torchvision";
1213 name = "${pname}-${version}";
1314
@@ -16,7 +17,7 @@ buildPythonPackage rec {
1617 src = fetchPypi {
1718 inherit pname version;
1819 format = "wheel";
19− sha256 = "016rjfh9w1x4xpw15ryxsvq3j2li17nd3a7qslnf3241hc6vdcwf";
20+ sha256 = "18gvdabkmzfjg47ns0lw38mf85ry28nq1mas5rzlwvb4l5zmw2ms";
2021 };
2122
2223 propagatedBuildInputs = [ six numpy pillow pytorch ];
pkgs/development/ruby-modules/gem-config/default.nix+7
@@ -208,6 +208,13 @@ in
208208 ] ++ lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}";
209209 };
210210
211+ oxidized = attrs: {
212+ postInstall = ''
213+ cd "$(cat "$out/nix-support/gem-meta/install-path")"
214+ patch -p1 < ${../../../tools/admin/oxidized/temporary-x-series.patch}
215+ '';
216+ };
217+
211218 pango = attrs: {
212219 nativeBuildInputs = [ pkgconfig ];
213220 buildInputs = [ gtk2 xorg.libXdmcp pcre xorg.libpthreadstubs ];
pkgs/development/tools/parsing/ragel/default.nix+2−2
@@ -43,8 +43,8 @@ in
4343 };
4444
4545 ragelDev = generic {
46− version = "7.0.0.10";
47− sha256 = "1v4ddzxal4gf8l8nkn32qabba6nbpd2mg8sphgmdn8kaqv52nmj0";
46+ version = "7.0.0.11";
47+ sha256 = "0h2k9bfz9i7x9mvr9rbsrzz8fk17756zwwrkf3fppvm9ivzwdfh8";
4848 license = stdenv.lib.licenses.mit;
4949 };
5050}
pkgs/development/tools/rust/cbindgen/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, fetchFromGitHub, rustPlatform }:
2+
3+rustPlatform.buildRustPackage rec {
4+ name = "rust-cbindgen-${version}";
5+ version = "0.6.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "eqrion";
9+ repo = "cbindgen";
10+ rev = "v${version}";
11+ sha256 = "0yzjbmdhhwbg551bm06xwwdjdm5kdqw37pgd7hals8qxb0dzmmh8";
12+ };
13+
14+ cargoSha256 = "1ml4a7xp40l3bhfhpwdrwj3k99zhan9dzpkw71fa689xmv6pdj62";
15+
16+ meta = with stdenv.lib; {
17+ description = "A project for generating C bindings from Rust code";
18+ homepage = https://github.com/eqrion/cbindgen;
19+ license = licenses.mpl20;
20+ maintainers = with maintainers; [ jtojnar ];
21+ };
22+}
pkgs/development/tools/skopeo/default.nix+7−3
@@ -5,13 +5,13 @@
55with stdenv.lib;
66
77let
8− version = "0.1.29";
8+ version = "0.1.30";
99
1010 src = fetchFromGitHub {
1111 rev = "v${version}";
1212 owner = "projectatomic";
1313 repo = "skopeo";
14− sha256 = "1lhzbyj2mm25x12s7g2jx4v8w19izjwlgx4lml13r5yy1spn65k2";
14+ sha256 = "10lpiiki7mlhrp4bid40wys3lch7fars1whxsa5gy0frfgp89ghn";
1515 };
1616
1717 defaultPolicyFile = runCommand "skopeo-default-policy.json" {} "cp ${src}/default-policy.json $out";
@@ -30,7 +30,11 @@ buildGoPackage rec {
3030 nativeBuildInputs = [ pkgconfig (lib.getBin go-md2man) ];
3131 buildInputs = [ gpgme libgpgerror devicemapper btrfs-progs ostree libselinux ];
3232
33− buildFlagsArray = "-ldflags= -X github.com/projectatomic/skopeo/vendor/github.com/containers/image/signature.systemDefaultPolicyPath=${defaultPolicyFile}";
33+ buildFlagsArray = ''
34+ -ldflags=
35+ -X github.com/projectatomic/skopeo/vendor/github.com/containers/image/signature.systemDefaultPolicyPath=${defaultPolicyFile}
36+ -X github.com/projectatomic/skopeo/vendor/github.com/containers/image/internal/tmpdir.unixTempDirForBigFiles=/tmp
37+ '';
3438
3539 preBuild = ''
3640 export CGO_CFLAGS="-I${getDev gpgme}/include -I${getDev libgpgerror}/include -I${getDev devicemapper}/include -I${getDev btrfs-progs}/include"
pkgs/development/tools/yarn/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "yarn-${version}";
5− version = "1.6.0";
5+ version = "1.7.0";
66
77 src = fetchzip {
88 url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz";
9− sha256 = "0bblp1jy4s9y5rpcqn40w61qwsmxr342xkcn7ykk88i7sng2cgfw";
9+ sha256 = "00fxihv9ih40k6f21a7hb6vkx4h4m6ks0fbai5h9ssi0p4m5j3by";
1010 };
1111
1212 buildInputs = [makeWrapper nodejs];
pkgs/os-specific/darwin/ios-sdk-pkgs/default.nix+2−2
@@ -6,6 +6,7 @@
66, wrapBintoolsWith
77, wrapCCWith
88, buildIosSdk, targetIosSdkPkgs
9+, xcode
910}:
1011
1112let
@@ -21,11 +22,10 @@ iosPlatformArch = { parsed, ... }: {
2122in
2223
2324rec {
24− # TODO(kmicklas): Make a pure version of this for each supported SDK version.
2525 sdk = rec {
2626 name = "ios-sdk";
2727 type = "derivation";
28− outPath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhone${sdkType}.platform/Developer/SDKs/iPhone${sdkType}${version}.sdk";
28+ outPath = xcode + "/Contents/Developer/Platforms/iPhone${sdkType}.platform/Developer/SDKs/iPhone${sdkType}${version}.sdk";
2929
3030 sdkType = if targetPlatform.isiPhoneSimulator then "Simulator" else "OS";
3131 version = targetPlatform.sdkVer;
pkgs/os-specific/darwin/xcode/default.nix+47−50
@@ -1,51 +1,48 @@
1−{ stdenv, requireFile, xpwn }:
2−
3−with stdenv.lib;
4−
5−let
6− osxVersion = "10.9";
7−in stdenv.mkDerivation rec {
8− name = "xcode-${version}";
9− version = "5.1";
10−
11− src = requireFile {
12− name = "xcode_${version}.dmg";
13− url = meta.homepage;
14− sha256 = "70bb550cc14eca80b9825f4ae9bfbf7f076bb75777311be428bc30a7eb7a6f7e";
15− };
16−
17− outputs = [ "out" "toolchain" ];
18−
19−
20− unpackCmd = let
21− basePath = "Xcode.app/Contents/Developer/Platforms/MacOSX.platform";
22− sdkPath = "${basePath}/Developer/SDKs";
23− in ''
24− ${xpwn}/bin/dmg extract "$curSrc" main.hfs > /dev/null
25− ${xpwn}/bin/hfsplus main.hfs extractall "${sdkPath}" > /dev/null
26− '';
27−
28− setSourceRoot = "sourceRoot=MacOSX${osxVersion}.sdk";
29−
30− patches = optional (osxVersion == "10.9") ./gcc-fix-enum-attributes.patch;
31−
32− installPhase = ''
33− mkdir -p "$out/share/sysroot"
34− cp -a * "$out/share/sysroot/"
35− ln -s "$out/share/sysroot/usr/lib" "$out/lib"
36− ln -s "$out/share/sysroot/usr/include" "$out/include"
37−
38− mkdir -p "$toolchain"
39− pushd "$toolchain"
40− ${xpwn}/bin/hfsplus "$(dirs +1)/../main.hfs" extractall \
41− Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr \
42− > /dev/null
43− popd
44− '';
45−
46− meta = {
47− homepage = https://developer.apple.com/downloads/;
48− description = "Apple's XCode SDK";
49− license = stdenv.lib.licenses.unfree;
50− };
1+{ stdenv, requireFile }:
2+
3+let requireXcode = version: sha256:
4+ let
5+ xip = "Xcode_" + version + ".xip";
6+ # TODO(alexfmpe): Find out how to validate the .xip signature in Linux
7+ unxip = if stdenv.isDarwin
8+ then ''
9+ open -W ${xip}
10+ rm -rf ${xip}
11+ ''
12+ else ''
13+ xar -xf ${xip}
14+ rm -rf ${xip}
15+ pbzx -n Content | cpio -i
16+ rm Content Metadata
17+ '';
18+ app = requireFile rec {
19+ name = "Xcode.app";
20+ url = "https://download.developer.apple.com/Developer_Tools/Xcode_" + version + "/" + xip;
21+ hashMode = "recursive";
22+ inherit sha256;
23+ message = ''
24+ Unfortunately, we cannot download ${name} automatically.
25+ Please go to ${url}
26+ to download it yourself, and add it to the Nix store by running the following commands."
27+ Note: download (~ 5GB), extraction and storing of Xcode will take a while
28+
29+ ${unxip}
30+ nix-store --add-fixed --recursive sha256 Xcode.app
31+ rm -rf Xcode.app
32+ '';
33+ };
34+ meta = with stdenv.lib; {
35+ homepage = https://developer.apple.com/downloads/;
36+ description = "Apple's XCode SDK";
37+ license = licenses.unfree;
38+ platforms = platforms.darwin ++ platforms.linux;
39+ };
40+
41+ in app.overrideAttrs ( oldAttrs: oldAttrs // { inherit meta; });
42+
43+in {
44+ xcode_8_1 = requireXcode "8.1" "18xjvfipwzia66gm3r9p770xdd4r375vak7chw5vgqnv9yyjiq2n";
45+ xcode_8_2 = requireXcode "8.2" "13nd1zsfqcp9hwp15hndr0rsbb8rgprrz7zr2ablj4697qca06m2";
46+ xcode_9_1 = requireXcode "9.1" "0ab1403wy84ys3yn26fj78cazhpnslmh3nzzp1wxib3mr1afjvic";
47+ xcode_9_2 = requireXcode "9.2" "1bgfgdp266cbbqf2axcflz92frzvhi0qw0jdkcw6r85kdpc8dj4c";
5148}
pkgs/os-specific/linux/criu/default.nix+2−2
@@ -4,11 +4,11 @@
44
55stdenv.mkDerivation rec {
66 name = "criu-${version}";
7− version = "3.8.1";
7+ version = "3.9";
88
99 src = fetchurl {
1010 url = "http://download.openvz.org/criu/${name}.tar.bz2";
11− sha256 = "0csyhsc5d6wkcjyvsp6h9x8zxn3zk574s84gfmy3gjagv3nwqd51";
11+ sha256 = "0l71lmklr42pc2bj37pkp7y8va8bx42n9f6i4q4idsx4wrdd75fx";
1212 };
1313
1414 enableParallelBuilding = true;
pkgs/os-specific/linux/kernel/linux-4.14.nix+2−2
@@ -3,13 +3,13 @@
33with stdenv.lib;
44
55buildLinux (args // rec {
6− version = "4.14.42";
6+ version = "4.14.43";
77
88 # branchVersion needs to be x.y
99 extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));
1010
1111 src = fetchurl {
1212 url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
13− sha256 = "00wh8ydawy6j18as28albzid88cm2aanzr8vz367jjp2k5pi00rb";
13+ sha256 = "0jkikvjsrz7wk1zx57brzhhs15gbx022f1as4mn0017az7wc0gqk";
1414 };
1515} // (args.argsOverride or {}))
pkgs/os-specific/linux/kernel/linux-4.16.nix+2−2
@@ -3,7 +3,7 @@
33with stdenv.lib;
44
55buildLinux (args // rec {
6− version = "4.16.10";
6+ version = "4.16.11";
77
88 # modDirVersion needs to be x.y.z, will automatically add .0 if needed
99 modDirVersion = concatStrings (intersperse "." (take 3 (splitString "." "${version}.0")));
@@ -13,6 +13,6 @@ buildLinux (args // rec {
1313
1414 src = fetchurl {
1515 url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
16− sha256 = "1gnf16p4rmibcn3wn5zp4pl2zmhgk4dg6718gvdr8vcffd87ksc0";
16+ sha256 = "088931hgi5acm8nz19nd09skmamr3hhfb958374j30br6f94pfkd";
1717 };
1818} // (args.argsOverride or {}))
pkgs/os-specific/linux/kernel/linux-4.9.nix+2−2
@@ -1,11 +1,11 @@
11{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
22
33buildLinux (args // rec {
4− version = "4.9.101";
4+ version = "4.9.102";
55 extraMeta.branch = "4.9";
66
77 src = fetchurl {
88 url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
9− sha256 = "005awyjylyp7di8cy269923j7wsvv74s42k7955fq0790wmx15dg";
9+ sha256 = "1icx253l8s158d1ccn594ddkqdxch8jr0w6kbj00jn1dlmms6mfi";
1010 };
1111} // (args.argsOverride or {}))
pkgs/os-specific/linux/syslinux/default.nix+3
@@ -50,6 +50,9 @@ stdenv.mkDerivation rec {
5050 postInstall = ''
5151 wrapProgram $out/bin/syslinux \
5252 --prefix PATH : "${mtools}/bin"
53+
54+ # Delete com32 headers to save space, nobody seems to be using them
55+ rm -rf $out/share/syslinux/com32
5356 '';
5457
5558 meta = with stdenv.lib; {
pkgs/servers/atlassian/confluence.nix+2−2
@@ -5,11 +5,11 @@
55
66stdenv.mkDerivation rec {
77 name = "atlassian-confluence-${version}";
8− version = "6.6.1";
8+ version = "6.8.0";
99
1010 src = fetchurl {
1111 url = "https://www.atlassian.com/software/confluence/downloads/binary/${name}.tar.gz";
12− sha256 = "0nb8rjzfd0fqd9k1yxa3dj7kxgh84dgbg9l8jyj59g74ym77qmw0";
12+ sha256 = "07awdbkjxkk4rbnpbb5xfjp4125c33bwxncmydlgzgk5fzy6dg2w";
1313 };
1414
1515 phases = [ "unpackPhase" "buildPhase" "installPhase" ];
pkgs/servers/atlassian/crowd.nix+2−2
@@ -3,11 +3,11 @@
33
44stdenv.mkDerivation rec {
55 name = "atlassian-crowd-${version}";
6− version = "3.0.1";
6+ version = "3.1.2";
77
88 src = fetchurl {
99 url = "https://www.atlassian.com/software/crowd/downloads/binary/${name}.tar.gz";
10− sha256 = "17pz0rgzdv40sbvzb9w6xmdg598m6gs7gsznfnxcy1j011cgg1wr";
10+ sha256 = "0pnl0zl38827ckgxh4y1mnq3lr7bvd7v3ysdxxv3nfr5zya4xgki";
1111 };
1212
1313 phases = [ "unpackPhase" "buildPhase" "installPhase" "fixupPhase" ];
pkgs/servers/atlassian/jira.nix+2−2
@@ -5,11 +5,11 @@
55
66stdenv.mkDerivation rec {
77 name = "atlassian-jira-${version}";
8− version = "7.9.0";
8+ version = "7.9.2";
99
1010 src = fetchurl {
1111 url = "https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-${version}.tar.gz";
12− sha256 = "1xj04a78dhjzb2ms875lfg5s3qc8rw31fws92yhmbs0k1866g33b";
12+ sha256 = "05976h6033v2w7d05qnigxmsrm33bg7gmgyzpvis8910fkxrhvhh";
1313 };
1414
1515 phases = [ "unpackPhase" "buildPhase" "installPhase" "fixupPhase" ];
pkgs/servers/matrix-synapse/default.nix+2−2
@@ -26,13 +26,13 @@ let
2626 };
2727in pythonPackages.buildPythonApplication rec {
2828 name = "matrix-synapse-${version}";
29− version = "0.28.1";
29+ version = "0.30.0";
3030
3131 src = fetchFromGitHub {
3232 owner = "matrix-org";
3333 repo = "synapse";
3434 rev = "v${version}";
35− sha256 = "1xgiprnhp893zc0g3i7wpwzgjy6q5nb858p0s6kcsca60vr9j6h0";
35+ sha256 = "10ggv7669ngxs8py82k8z24874ga0ldcxvpp7xhjpbr1s0gw8zv8";
3636 };
3737
3838 patches = [
pkgs/tools/admin/oxidized/Gemfilenew file+5
@@ -0,0 +1,5 @@
1+source 'https://rubygems.org'
2+
3+gem 'oxidized'
4+gem 'oxidized-web'
5+gem 'oxidized-script'
pkgs/tools/admin/oxidized/Gemfile.locknew file+69
@@ -0,0 +1,69 @@
1+GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ asetus (0.3.0)
5+ backports (3.11.2)
6+ emk-sinatra-url-for (0.2.1)
7+ sinatra (>= 0.9.1.1)
8+ ffi (1.9.23)
9+ haml (4.0.7)
10+ tilt
11+ htmlentities (4.3.4)
12+ multi_json (1.13.1)
13+ net-ssh (4.1.0)
14+ oxidized (0.21.0)
15+ asetus (~> 0.1)
16+ net-ssh (~> 4.1.0)
17+ rugged (~> 0.21, >= 0.21.4)
18+ slop (~> 3.5)
19+ oxidized-script (0.5.0)
20+ oxidized (~> 0.21.0)
21+ slop (~> 3.5)
22+ oxidized-web (0.9.3)
23+ emk-sinatra-url-for (~> 0.2)
24+ haml (~> 4.0)
25+ htmlentities (~> 4.3)
26+ oxidized (~> 0.21.0)
27+ puma (~> 3)
28+ sass (~> 3.3)
29+ sinatra (~> 1.4, >= 1.4.6)
30+ sinatra-contrib (~> 1.4, >= 1.4.6)
31+ puma (3.11.3)
32+ rack (1.6.9)
33+ rack-protection (1.5.5)
34+ rack
35+ rack-test (1.0.0)
36+ rack (>= 1.0, < 3)
37+ rb-fsevent (0.10.3)
38+ rb-inotify (0.9.10)
39+ ffi (>= 0.5.0, < 2)
40+ rugged (0.27.0)
41+ sass (3.5.6)
42+ sass-listen (~> 4.0.0)
43+ sass-listen (4.0.0)
44+ rb-fsevent (~> 0.9, >= 0.9.4)
45+ rb-inotify (~> 0.9, >= 0.9.7)
46+ sinatra (1.4.8)
47+ rack (~> 1.5)
48+ rack-protection (~> 1.4)
49+ tilt (>= 1.3, < 3)
50+ sinatra-contrib (1.4.7)
51+ backports (>= 2.0)
52+ multi_json
53+ rack-protection
54+ rack-test
55+ sinatra (~> 1.4.0)
56+ tilt (>= 1.3, < 3)
57+ slop (3.6.0)
58+ tilt (2.0.8)
59+
60+PLATFORMS
61+ ruby
62+
63+DEPENDENCIES
64+ oxidized
65+ oxidized-script
66+ oxidized-web
67+
68+BUNDLED WITH
69+ 1.14.6
pkgs/tools/admin/oxidized/default.nixnew file+18
@@ -0,0 +1,18 @@
1+{ lib, fetchFromGitHub, ruby, git, bundlerApp }:
2+
3+bundlerApp rec {
4+ pname = "oxidized";
5+ gemdir = ./.;
6+
7+ inherit ruby;
8+
9+ exes = [ "oxidized" "oxidized-web" "oxidized-script" ];
10+
11+ meta = with lib; {
12+ description = "Oxidized is a network device configuration backup tool. It's a RANCID replacement!";
13+ homepage = https://github.com/ytti/oxidized;
14+ license = licenses.asl20;
15+ maintainers = [ maintainers.willibutz ];
16+ platforms = platforms.linux;
17+ };
18+}
pkgs/tools/admin/oxidized/gemset.nixnew file+206
@@ -0,0 +1,206 @@
1+{
2+ asetus = {
3+ source = {
4+ remotes = ["https://rubygems.org"];
5+ sha256 = "1zkr8cbp8klanqmhzz7qmimzlxh6zmsy98zb3s75af34l7znq790";
6+ type = "gem";
7+ };
8+ version = "0.3.0";
9+ };
10+ backports = {
11+ source = {
12+ remotes = ["https://rubygems.org"];
13+ sha256 = "0sw58rsz1hl821ia1jj3nnl3jr7xwfkcljgs56kpq3fakzcljcdz";
14+ type = "gem";
15+ };
16+ version = "3.11.2";
17+ };
18+ emk-sinatra-url-for = {
19+ dependencies = ["sinatra"];
20+ source = {
21+ remotes = ["https://rubygems.org"];
22+ sha256 = "0rd5b1lraklv0hblzdnmw2z3dragfg0qqk7wxbpn58f8y7jxzjgj";
23+ type = "gem";
24+ };
25+ version = "0.2.1";
26+ };
27+ ffi = {
28+ source = {
29+ remotes = ["https://rubygems.org"];
30+ sha256 = "0zw6pbyvmj8wafdc7l5h7w20zkp1vbr2805ql5d941g2b20pk4zr";
31+ type = "gem";
32+ };
33+ version = "1.9.23";
34+ };
35+ haml = {
36+ dependencies = ["tilt"];
37+ source = {
38+ remotes = ["https://rubygems.org"];
39+ sha256 = "0mrzjgkygvfii66bbylj2j93na8i89998yi01fin3whwqbvx0m1p";
40+ type = "gem";
41+ };
42+ version = "4.0.7";
43+ };
44+ htmlentities = {
45+ source = {
46+ remotes = ["https://rubygems.org"];
47+ sha256 = "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj";
48+ type = "gem";
49+ };
50+ version = "4.3.4";
51+ };
52+ multi_json = {
53+ source = {
54+ remotes = ["https://rubygems.org"];
55+ sha256 = "1rl0qy4inf1mp8mybfk56dfga0mvx97zwpmq5xmiwl5r770171nv";
56+ type = "gem";
57+ };
58+ version = "1.13.1";
59+ };
60+ net-ssh = {
61+ source = {
62+ remotes = ["https://rubygems.org"];
63+ sha256 = "013p5jb4wy0cq7x7036piw2a3s1i9p752ki1srx2m289mpz4ml3q";
64+ type = "gem";
65+ };
66+ version = "4.1.0";
67+ };
68+ oxidized = {
69+ dependencies = ["asetus" "net-ssh" "rugged" "slop"];
70+ source = {
71+ remotes = ["https://rubygems.org"];
72+ sha256 = "0xqx0iawj2cm6083a61y43d6a76xaypiw0nkyirx02lhynq07yz0";
73+ type = "gem";
74+ };
75+ version = "0.21.0";
76+ };
77+ oxidized-script = {
78+ dependencies = ["oxidized" "slop"];
79+ source = {
80+ remotes = ["https://rubygems.org"];
81+ sha256 = "12c15gksrrar9kradcv6mx2d4a8ixa4lykszb4pcapiw5mi35mxp";
82+ type = "gem";
83+ };
84+ version = "0.5.0";
85+ };
86+ oxidized-web = {
87+ dependencies = ["emk-sinatra-url-for" "haml" "htmlentities" "oxidized" "puma" "sass" "sinatra" "sinatra-contrib"];
88+ source = {
89+ remotes = ["https://rubygems.org"];
90+ sha256 = "14s10pr8qaq6g19zi753igngp02li46k3nm5ap537r3743v1l4f9";
91+ type = "gem";
92+ };
93+ version = "0.9.3";
94+ };
95+ puma = {
96+ source = {
97+ remotes = ["https://rubygems.org"];
98+ sha256 = "03313mnx8n6g9qs9l5zafqq90grrhq2nqrmjs8lsffi28mgd3cfd";
99+ type = "gem";
100+ };
101+ version = "3.11.3";
102+ };
103+ rack = {
104+ source = {
105+ remotes = ["https://rubygems.org"];
106+ sha256 = "03w1ri5l91q800f1bdcdl5rbagy7s4kml136b42s2lmxmznxhr07";
107+ type = "gem";
108+ };
109+ version = "1.6.9";
110+ };
111+ rack-protection = {
112+ dependencies = ["rack"];
113+ source = {
114+ remotes = ["https://rubygems.org"];
115+ sha256 = "0my0wlw4a5l3hs79jkx2xzv7djhajgf8d28k8ai1ddlnxxb0v7ss";
116+ type = "gem";
117+ };
118+ version = "1.5.5";
119+ };
120+ rack-test = {
121+ dependencies = ["rack"];
122+ source = {
123+ remotes = ["https://rubygems.org"];
124+ sha256 = "1l799s5qr2qrshvrggq5ch3v235y491zfww07b39w4pj4vpa65l1";
125+ type = "gem";
126+ };
127+ version = "1.0.0";
128+ };
129+ rb-fsevent = {
130+ source = {
131+ remotes = ["https://rubygems.org"];
132+ sha256 = "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8";
133+ type = "gem";
134+ };
135+ version = "0.10.3";
136+ };
137+ rb-inotify = {
138+ dependencies = ["ffi"];
139+ source = {
140+ remotes = ["https://rubygems.org"];
141+ sha256 = "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71";
142+ type = "gem";
143+ };
144+ version = "0.9.10";
145+ };
146+ rugged = {
147+ source = {
148+ remotes = ["https://rubygems.org"];
149+ sha256 = "0q1krxgd0ql03x8m9m05x5sxizw5sc7lms7rkp44qf45grpdk3v3";
150+ type = "gem";
151+ };
152+ version = "0.27.0";
153+ };
154+ sass = {
155+ dependencies = ["sass-listen"];
156+ source = {
157+ remotes = ["https://rubygems.org"];
158+ sha256 = "19wyzp9qsg8hdkkxlsv713w0qmy66qrdp0shj42587ssx4qhrlag";
159+ type = "gem";
160+ };
161+ version = "3.5.6";
162+ };
163+ sass-listen = {
164+ dependencies = ["rb-fsevent" "rb-inotify"];
165+ source = {
166+ remotes = ["https://rubygems.org"];
167+ sha256 = "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df";
168+ type = "gem";
169+ };
170+ version = "4.0.0";
171+ };
172+ sinatra = {
173+ dependencies = ["rack" "rack-protection" "tilt"];
174+ source = {
175+ remotes = ["https://rubygems.org"];
176+ sha256 = "0byxzl7rx3ki0xd7aiv1x8mbah7hzd8f81l65nq8857kmgzj1jqq";
177+ type = "gem";
178+ };
179+ version = "1.4.8";
180+ };
181+ sinatra-contrib = {
182+ dependencies = ["backports" "multi_json" "rack-protection" "rack-test" "sinatra" "tilt"];
183+ source = {
184+ remotes = ["https://rubygems.org"];
185+ sha256 = "0vi3i0icbi2figiayxpvxbqpbn1syma7w4p4zw5mav1ln4c7jnfr";
186+ type = "gem";
187+ };
188+ version = "1.4.7";
189+ };
190+ slop = {
191+ source = {
192+ remotes = ["https://rubygems.org"];
193+ sha256 = "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n";
194+ type = "gem";
195+ };
196+ version = "3.6.0";
197+ };
198+ tilt = {
199+ source = {
200+ remotes = ["https://rubygems.org"];
201+ sha256 = "0020mrgdf11q23hm1ddd6fv691l51vi10af00f137ilcdb2ycfra";
202+ type = "gem";
203+ };
204+ version = "2.0.8";
205+ };
206+}
pkgs/tools/admin/oxidized/temporary-x-series.patchnew file+22
@@ -0,0 +1,22 @@
1+diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb
2+index f602a36..3bac2d1 100644
3+--- a/lib/oxidized/model/powerconnect.rb
4++++ b/lib/oxidized/model/powerconnect.rb
5+@@ -4,7 +4,7 @@ class PowerConnect < Oxidized::Model
6+
7+ comment '! '
8+
9+- expect /^\s*--More--\s+.*$/ do |data, re|
10++ expect /^([[:cntrl:]]...More:|\s*--More--\s+).*$/ do |data, re|
11+ send ' '
12+ data.sub re, ''
13+ end
14+@@ -60,7 +60,7 @@ class PowerConnect < Oxidized::Model
15+ skip_blocks = 0
16+ cfg.each_line do |line|
17+ # If this is a stackable switch we should skip this block of information
18+- if (line.match /Up\sTime|Temperature|Power Suppl(ies|y)|Fans/i and @stackable == true)
19++ if (line.match /Up\sTime|Temperature|Power Suppl(ies|y)|Fans/i)
20+ skip_blocks = 1
21+ # Some switches have another empty line. This is identified by this line having a colon
22+ skip_blocks = 2 if line.match /:/
pkgs/tools/audio/abcm2ps/default.nix+2−2
@@ -2,13 +2,13 @@
22
33stdenv.mkDerivation rec {
44 name = "abcm2ps-${version}";
5− version = "8.13.21";
5+ version = "8.13.22";
66
77 src = fetchFromGitHub {
88 owner = "leesavide";
99 repo = "abcm2ps";
1010 rev = "v${version}";
11− sha256 = "03r98xdw2vdwsi726i0zb7p0ljp3fpzjl1nhzfwz57m3zmqvz6r1";
11+ sha256 = "0csfg7aj9zg369q3c3bg18f24lk1j0356a90zlbrz7y5p668g3pv";
1212 };
1313
1414 prePatch = ''
pkgs/tools/filesystems/9pfs/default.nix+1−1
@@ -1,7 +1,7 @@
11{ lib, stdenv, fetchFromGitHub, fuse }:
22
33stdenv.mkDerivation rec {
4− name = "9pfs";
4+ name = "9pfs-20150918";
55
66 src = fetchFromGitHub {
77 owner = "mischief";
pkgs/tools/filesystems/ntfs-3g/default.nix+2
@@ -6,6 +6,8 @@ stdenv.mkDerivation rec {
66 version = "2017.3.23";
77 name = "${pname}-${version}";
88
9+ outputs = [ "out" "dev" "man" "doc" ];
10+
911 buildInputs = [ libuuid ] ++ stdenv.lib.optionals crypto [ gnutls libgcrypt ];
1012 nativeBuildInputs = stdenv.lib.optional crypto pkgconfig;
1113
pkgs/tools/misc/parted/default.nix+2
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
99 sha256 = "1r3qpg3bhz37mgvp9chsaa3k0csby3vayfvz8ggsqz194af5i2w5";
1010 };
1111
12+ outputs = [ "out" "dev" "man" "info" ];
13+
1214 patches = stdenv.lib.optional doCheck ./gpt-unicode-test-fix.patch
1315 ++ stdenv.lib.optional stdenv.hostPlatform.isMusl
1416 (fetchpatch {
pkgs/tools/package-management/nix-du/default.nix+4−4
@@ -1,17 +1,17 @@
11{ stdenv, fetchFromGitHub, rustPlatform, nix, boost, graphviz }:
22rustPlatform.buildRustPackage rec {
33 name = "nix-du-${version}";
4− version = "0.1.1";
4+ version = "0.1.2";
55
66 src = fetchFromGitHub {
77 owner = "symphorien";
88 repo = "nix-du";
99 rev = "v${version}";
10− sha256 = "0kxacn5qw21pp4zl6wr9wyb2mm2nlnp6mla3m5p9dm7vrm1fd1x9";
10+ sha256 = "1y7ifr4c3v1494swh6akvna0d0rxjy9jw3mw2wdd6vj1xphvmimq";
1111 };
12− cargoSha256 = "04c48lzi7hny3nq4ffdpvsr4dxbi32faka163fp1yc9953zdw9az";
12+ cargoSha256 = "0qq7a6ncxnbjvnmly99awqrk9f3z9b55ifil7b0bn5yhk4h9sa6y";
1313
14− doCheck = !stdenv.isDarwin;
14+ doCheck = true;
1515 checkInputs = [ graphviz ];
1616 nativeBuildInputs = [] ++ stdenv.lib.optionals doCheck checkInputs;
1717
pkgs/tools/security/gopass/default.nix+3−3
@@ -1,7 +1,7 @@
11{ stdenv, buildGoPackage, fetchFromGitHub, git, gnupg, xclip, makeWrapper }:
22
33buildGoPackage rec {
4− version = "1.6.11";
4+ version = "1.7.1";
55 name = "gopass-${version}";
66
77 goPackagePath = "github.com/justwatchcom/gopass";
@@ -12,7 +12,7 @@ buildGoPackage rec {
1212 owner = "justwatchcom";
1313 repo = "gopass";
1414 rev = "v${version}";
15− sha256 = "12pih414232bsdj1qqc04vck2p9254wjy044n5kbbdqbmfgap7sj";
15+ sha256 = "01cif6a2xa3c8nki0pas9mywdxs8d9niv8z13mii5hcfqvm0s7aw";
1616 };
1717
1818 wrapperPath = with stdenv.lib; makeBinPath ([
@@ -38,7 +38,7 @@ buildGoPackage rec {
3838
3939 meta = with stdenv.lib; {
4040 description = "The slightly more awesome Standard Unix Password Manager for Teams. Written in Go.";
41− homepage = https://github.com/justwatchcom/gopass;
41+ homepage = https://www.justwatch.com/gopass/;
4242 license = licenses.mit;
4343 maintainers = with maintainers; [ andir ];
4444 platforms = platforms.unix;
pkgs/tools/system/efivar/default.nix+6
@@ -4,6 +4,8 @@ stdenv.mkDerivation rec {
44 name = "efivar-${version}";
55 version = "35";
66
7+ outputs = [ "bin" "out" "dev" "man" ];
8+
79 src = fetchFromGitHub {
810 owner = "rhinstaller";
911 repo = "efivar";
@@ -17,6 +19,10 @@ stdenv.mkDerivation rec {
1719 makeFlags = [
1820 "prefix=$(out)"
1921 "libdir=$(out)/lib"
22+ "bindir=$(bin)/bin"
23+ "mandir=$(man)/share/man"
24+ "includedir=$(dev)/include"
25+ "PCDIR=$(dev)/lib/pkgconfig"
2026 ];
2127
2228 meta = with stdenv.lib; {
pkgs/tools/system/gohai/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ lib, stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
2+
3+buildGoPackage rec {
4+ name = "gohai-${version}";
5+ version = "2018-05-23";
6+ rev = "60e13eaed98afa238ad6dfc98224c04fbb7b19b1";
7+
8+ goPackagePath = "github.com/DataDog/gohai";
9+
10+ src = fetchgit {
11+ inherit rev;
12+ url = "https://github.com/DataDog/gohai";
13+ sha256 = "15hdw195f6ayrmj1nbyfpfswdai1r1z3qjw927mbma7rwql24dkr";
14+ };
15+
16+ goDeps = ./deps.nix;
17+
18+ meta = with lib; {
19+ description = "System information collector";
20+ homepage = "https://github.com/DataDog/gohai";
21+ license = licenses.mit;
22+ maintainers = [ maintainers.tazjin ];
23+ platforms = platforms.unix;
24+ repositories.git = git://github.com/DataDog/gohai.git;
25+
26+ longDescription = ''
27+ Gohai is a tool which collects an inventory of system
28+ information. It is used by the Datadog agent to provide detailed
29+ system metrics.
30+ '';
31+ };
32+}
pkgs/tools/system/gohai/deps.nixnew file+30
@@ -0,0 +1,30 @@
1+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
2+[
3+ {
4+ goPackagePath = "github.com/cihub/seelog";
5+ fetch = {
6+ type = "git";
7+ url = "https://github.com/cihub/seelog";
8+ rev = "f561c5e57575bb1e0a2167028b7339b3a8d16fb4";
9+ sha256 = "0r3228hvgljgpaggj6b9mvxfsizfw25q2c1761wsvcif8gz49cvl";
10+ };
11+ }
12+ {
13+ goPackagePath = "github.com/shirou/gopsutil";
14+ fetch = {
15+ type = "git";
16+ url = "https://github.com/shirou/gopsutil";
17+ rev = "eeb1d38d69593f121e060d24d17f7b1f0936b203";
18+ sha256 = "01qsznk599225gf4pld7p2m30p61y77mvzhrs6raxpk6wf7icp4w";
19+ };
20+ }
21+ {
22+ goPackagePath = "golang.org/x/sys";
23+ fetch = {
24+ type = "git";
25+ url = "https://go.googlesource.com/sys";
26+ rev = "77b0e4315053a57ed2962443614bdb28db152054";
27+ sha256 = "1024gcv1b40i2rgvpgyw2hgy1k5g7473pn29yavwysj37m1rrplp";
28+ };
29+ }
30+]
pkgs/tools/typesetting/pdfgrep/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "pdfgrep-${version}";
5− version = "2.1.0";
5+ version = "2.1.1";
66
77 src = fetchurl {
88 url = "https://pdfgrep.org/download/${name}.tar.gz";
9− sha256 = "13al23c2wlpsha6c1z1h6gh5lxzphsnzpd7b78qj16rq2r46phf9";
9+ sha256 = "02qcl5kmr5qzjfc99qpbpfb1890bxlrq3r208gnding51zrmb09c";
1010 };
1111
1212 postPatch = ''
pkgs/top-level/all-packages.nix+15−3
@@ -1288,6 +1288,8 @@ with pkgs;
12881288
12891289 goa = callPackage ../development/tools/goa { };
12901290
1291+ gohai = callPackage ../tools/system/gohai { };
1292+
12911293 gorilla-bin = callPackage ../tools/security/gorilla-bin { };
12921294
12931295 gosu = callPackage ../tools/misc/gosu { };
@@ -4229,6 +4231,8 @@ with pkgs;
42294231
42304232 owncloud-client = libsForQt5.callPackage ../applications/networking/owncloud-client { };
42314233
4234+ oxidized = callPackage ../tools/admin/oxidized { };
4235+
42324236 oxipng = callPackage ../tools/graphics/oxipng { };
42334237
42344238 p2pvc = callPackage ../applications/video/p2pvc {};
@@ -6454,7 +6458,7 @@ with pkgs;
64546458 };
64556459
64566460 fstar = callPackage ../development/compilers/fstar {
6457− ocamlPackages = ocaml-ng.ocamlPackages_4_02;
6461+ ocamlPackages = ocaml-ng.ocamlPackages_4_06;
64586462 };
64596463
64606464 dotnetPackages = recurseIntoAttrs (callPackage ./dotnet-packages.nix {});
@@ -6918,6 +6922,7 @@ with pkgs;
69186922 rustracer = callPackage ../development/tools/rust/racer { };
69196923 rustracerd = callPackage ../development/tools/rust/racerd { };
69206924 rust-bindgen = callPackage ../development/tools/rust/bindgen { };
6925+ rust-cbindgen = callPackage ../development/tools/rust/cbindgen { };
69216926 rustup = callPackage ../development/tools/rust/rustup {
69226927 inherit (darwin.apple_sdk.frameworks) Security;
69236928 };
@@ -8470,7 +8475,7 @@ with pkgs;
84708475
84718476 grabserial = callPackage ../development/tools/grabserial { };
84728477
8473− mypy = python3Packages.callPackage ../development/tools/mypy { };
8478+ mypy = python3Packages.mypy;
84748479
84758480 ### DEVELOPMENT / LIBRARIES
84768481
@@ -17130,7 +17135,7 @@ with pkgs;
1713017135
1713117136 nedit = callPackage ../applications/editors/nedit { };
1713217137
17133− nheko = callPackage ../applications/networking/instant-messengers/nheko { };
17138+ nheko = libsForQt5.callPackage ../applications/networking/instant-messengers/nheko { };
1713417139
1713517140 nomacs = libsForQt5.callPackage ../applications/graphics/nomacs { };
1713617141
@@ -18413,6 +18418,12 @@ with pkgs;
1841318418 imlib2 = imlib2-nox;
1841418419 };
1841518420
18421+ # Version without X11 or graphics
18422+ w3m-nographics = w3m.override {
18423+ x11Support = false;
18424+ graphicsSupport = false;
18425+ };
18426+
1841618427 # Version for batch text processing, not a good browser
1841718428 w3m-batch = w3m.override {
1841818429 graphicsSupport = false;
@@ -18567,6 +18578,7 @@ with pkgs;
1856718578 ++ optionals (config.kodi.enableHyperLauncher or false)
1856818579 (with hyper-launcher; [ plugin service pdfreader ])
1856918580 ++ optional (config.kodi.enableJoystick or false) joystick
18581+ ++ optional (config.kodi.enableOSMCskin or false) osmc-skin
1857018582 ++ optional (config.kodi.enableSVTPlay or false) svtplay
1857118583 ++ optional (config.kodi.enableSteamController or false) steam-controller
1857218584 ++ optional (config.kodi.enableSteamLauncher or false) steam-launcher
pkgs/top-level/darwin-packages.nix+2−1
@@ -47,6 +47,7 @@ in
4747 iosSdkPkgs = darwin.callPackage ../os-specific/darwin/ios-sdk-pkgs {
4848 buildIosSdk = buildPackages.darwin.iosSdkPkgs.sdk;
4949 targetIosSdkPkgs = targetPackages.darwin.iosSdkPkgs;
50+ xcode = darwin.xcode_8_2;
5051 inherit (pkgs.llvmPackages) clang-unwrapped;
5152 };
5253
@@ -68,7 +69,7 @@ in
6869
6970 usr-include = callPackage ../os-specific/darwin/usr-include { };
7071
71− xcode = callPackage ../os-specific/darwin/xcode { };
72+ inherit (callPackages ../os-specific/darwin/xcode { } ) xcode_8_1 xcode_8_2 xcode_9_1 xcode_9_2;
7273
7374 CoreSymbolication = callPackage ../os-specific/darwin/CoreSymbolication { };
7475
pkgs/top-level/ocaml-packages.nix+2
@@ -217,6 +217,8 @@ let
217217
218218 earley = callPackage ../development/ocaml-modules/earley { };
219219
220+ earley_ocaml = callPackage ../development/ocaml-modules/earley_ocaml { };
221+
220222 easy-format = callPackage ../development/ocaml-modules/easy-format { };
221223
222224 eliom = callPackage ../development/ocaml-modules/eliom { };
pkgs/top-level/perl-packages.nix+1
@@ -3632,6 +3632,7 @@ let self = _self // overrides; _self = with self; {
36323632 patchPhase = ''
36333633 sed -i "s#/bin/date#${pkgs.coreutils}/bin/date#" lib/Date/Manip/TZ.pm
36343634 '';
3635+ doCheck = !stdenv.isi686; # build freezes during tests on i686
36353636 meta = {
36363637 description = "Date manipulation routines";
36373638 };
pkgs/top-level/python-packages.nix+18
@@ -408,6 +408,10 @@ in {
408408
409409 pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };
410410
411+ python-openid = callPackage (if isPy3k
412+ then ../development/python-modules/python3-openid
413+ else ../development/python-modules/python-openid) { };
414+
411415 python-sql = callPackage ../development/python-modules/python-sql { };
412416
413417 python-stdnum = callPackage ../development/python-modules/python-stdnum { };
@@ -4711,6 +4715,8 @@ in {
47114715 };
47124716 };
47134717
4718+ django-allauth = callPackage ../development/python-modules/django-allauth { };
4719+
47144720 django_appconf = callPackage ../development/python-modules/django_appconf { };
47154721
47164722 django_colorful = buildPythonPackage rec {
@@ -4778,6 +4784,8 @@ in {
47784784
47794785 django_extensions = callPackage ../development/python-modules/django-extensions { };
47804786
4787+ django-gravatar2 = callPackage ../development/python-modules/django-gravatar2 { };
4788+
47814789 django_guardian = callPackage ../development/python-modules/django_guardian { };
47824790
47834791 django-ipware = callPackage ../development/python-modules/django-ipware { };
@@ -8085,6 +8093,8 @@ in {
80858093
80868094 mysqlclient = callPackage ../development/python-modules/mysqlclient { };
80878095
8096+ mypy = callPackage ../development/python-modules/mypy { };
8097+
80888098 mwclient = buildPythonPackage rec {
80898099 version = "0.8.3";
80908100 pname = "mwclient";
@@ -11263,10 +11273,18 @@ in {
1126311273 buildInputs = with self; [ pyasn1 pycrypto ];
1126411274 };
1126511275
11276+ python-language-server = callPackage ../development/python-modules/python-language-server {};
11277+
11278+ pyls-mypy = callPackage ../development/python-modules/pyls-mypy {};
11279+
11280+ pyls-isort = callPackage ../development/python-modules/pyls-isort {};
11281+
1126611282 pyudev = callPackage ../development/python-modules/pyudev {
1126711283 inherit (pkgs) fetchurl systemd;
1126811284 };
1126911285
11286+ pynmea2 = callPackage ../development/python-modules/pynmea2 {};
11287+
1127011288 pynzb = buildPythonPackage (rec {
1127111289 name = "pynzb-0.1.0";
1127211290