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

* master: (53 commits) hashcat: 4.0.0 -> 4.0.1 vault: add nixos test emem: 0.2.48 -> 0.2.50 nixos/nat: add dmzHost option (#32257) vulnix: 1.3.4 -> 1.4.0 linux-4.13: mark as insecure (+required generic changes) vault: 0.8.3 -> 0.9.0 gox: 20140904 -> 0.4.0 guitarix: 0.35.6 -> 0.36.1 geolite-legacy: 2017-10-25 -> 2017-12-02 premake5: 5.0.0pre.alpha.11 -> 5.0.0-alpha12 otfcc: build with ninja python/hetzner: 0.7.5 -> 0.8.0 linux-testing: 4.15-rc1 -> 4.15-rc2 Revert "linux_4_13: Remove, no longer supported." jenkins: 2.92 -> 2.93 psc-package: 0.2.4 -> 0.2.5 dino: 2017-09-26 -> 2017-12-03 gnome3.gpaste: fix keybindings path plasma: 5.11.3 -> 5.11.4 ...

commit59bcd866404e083d854a2de7fe1edb914ccddebf authorOrivej Desh <orivej@gmx.fr> dateMon 4 Dec 2017, 15:25 (9 years ago) parent6b42b5a67a86f7
70 files changed+741−372
lib/strings.nix+8 lib/types.nix+7 nixos/doc/manual/configuration/x-windows.xml+4−3 nixos/doc/manual/development/option-types.xml+6 nixos/lib/make-squashfs.nix+27 nixos/modules/module-list.nix+1 nixos/modules/services/networking/i2pd.nix+12−5 nixos/modules/services/networking/nat.nix+20−3 nixos/modules/services/security/tor.nix+81−2 nixos/modules/services/system/localtime.nix+60 nixos/release.nix+1 nixos/tests/vault.nix+23 pkgs/applications/audio/guitarix/default.nix+2−2 pkgs/applications/misc/emem/default.nix+2−2 pkgs/applications/misc/polybar/default.nix+3−11 pkgs/applications/networking/instant-messengers/dino/default.nix+3−3 pkgs/applications/virtualization/open-vm-tools/default.nix+1−1 pkgs/applications/virtualization/virtualbox/default.nix+1−1 pkgs/data/misc/geolite-legacy/default.nix+7−7 pkgs/desktops/gnome-3/misc/gpaste/default.nix+1−1 pkgs/desktops/plasma-5/fetch.sh+1−1 pkgs/desktops/plasma-5/srcs.nix+176−176 pkgs/development/compilers/ghc/7.10.2.nix+1−1 pkgs/development/compilers/ghc/7.10.3.nix+1−1 pkgs/development/compilers/ghc/8.0.2.nix+1−1 pkgs/development/compilers/ghc/8.2.1.nix+1−1 pkgs/development/compilers/ghc/head.nix+1−1 pkgs/development/compilers/ghcjs/base.nix+1−1 pkgs/development/compilers/halvm/2.4.0.nix+2−2 pkgs/development/compilers/neko/default.nix+1−1 pkgs/development/compilers/purescript/psc-package/default.nix+2−2 pkgs/development/haskell-modules/configuration-common.nix+1 pkgs/development/haskell-modules/configuration-nix.nix+52−1 pkgs/development/haskell-modules/generic-builder.nix+100−22 pkgs/development/haskell-modules/lib.nix+4 pkgs/development/haskell-modules/make-package-set.nix+1 pkgs/development/haskell-modules/with-packages-wrapper.nix+1−1 pkgs/development/ocaml-modules/mlgmpidl/default.nix+6−5 pkgs/development/ocaml-modules/ptmap/default.nix+2−2 pkgs/development/tools/analysis/frama-c/default.nix+3−3 pkgs/development/tools/continuous-integration/jenkins/default.nix+2−2 pkgs/development/tools/gox/default.nix+15−8 pkgs/development/tools/gox/deps.nix+2−2 pkgs/development/tools/misc/intel-gpu-tools/default.nix+1−1 pkgs/development/tools/misc/premake/5.nix+4−4 pkgs/games/dwarf-fortress/default.nix−1 pkgs/games/dwarf-fortress/stonesense.nix−15 pkgs/os-specific/linux/ioport/default.nix+1−1 pkgs/os-specific/linux/kernel/generic.nix+2−5 pkgs/os-specific/linux/kernel/linux-4.13.nix+6 pkgs/os-specific/linux/kernel/linux-testing.nix+3−3 pkgs/os-specific/linux/kernel/manual-config.nix+3−1 pkgs/servers/sql/postgresql/pgtap/default.nix+2−2 pkgs/servers/x11/xorg/overrides.nix+1 pkgs/shells/nix-bash-completions/default.nix+2−2 pkgs/shells/nix-zsh-completions/default.nix+2−2 pkgs/shells/zsh-prezto/default.nix+5−21 pkgs/tools/misc/fwup/default.nix+2−2 pkgs/tools/misc/memtest86+/default.nix+1−1 pkgs/tools/misc/otfcc/default.nix+10−11 pkgs/tools/misc/youtube-dl/default.nix+2−2 pkgs/tools/security/hashcat/default.nix+2−2 pkgs/tools/security/tor/default.nix+2−2 pkgs/tools/security/vault/default.nix+3−2 pkgs/tools/security/vulnix/default.nix+2−2 pkgs/tools/system/localtime/default.nix+22 pkgs/tools/system/rowhammer-test/default.nix+1−1 pkgs/tools/text/highlight/default.nix+2−2 pkgs/top-level/all-packages.nix+10−6 pkgs/top-level/python-packages.nix+3−6
lib/strings.nix+8
@@ -219,6 +219,14 @@ rec {
219219 */
220220 escapeShellArgs = concatMapStringsSep " " escapeShellArg;
221221
222+ /* Turn a string into a Nix expression representing that string
223+
224+ Example:
225+ escapeNixString "hello\${}\n"
226+ => "\"hello\\\${}\\n\""
227+ */
228+ escapeNixString = s: escape ["$"] (builtins.toJSON s);
229+
222230 /* Obsolete - use replaceStrings instead. */
223231 replaceChars = builtins.replaceStrings or (
224232 del: new: s:
lib/types.nix+7
@@ -174,6 +174,13 @@ rec {
174174 merge = mergeOneOption;
175175 };
176176
177+ strMatching = pattern: mkOptionType {
178+ name = "strMatching ${escapeNixString pattern}";
179+ description = "string matching the pattern ${pattern}";
180+ check = x: str.check x && builtins.match pattern x != null;
181+ inherit (str) merge;
182+ };
183+
177184 # Merge multiple definitions by concatenating them (with the given
178185 # separator between the values).
179186 separatedString = sep: mkOptionType rec {
nixos/doc/manual/configuration/x-windows.xml+4−3
@@ -115,13 +115,14 @@ hardware.opengl.driSupport32Bit = true;
115115<para>Support for Synaptics touchpads (found in many laptops such as
116116the Dell Latitude series) can be enabled as follows:
117117<programlisting>
118−services.xserver.synaptics.enable = true;
118+services.xserver.libinput.enable = true;
119119</programlisting>
120120The driver has many options (see <xref linkend="ch-options"/>). For
121−instance, the following enables two-finger scrolling:
121+instance, the following disables tap-to-click behavior:
122122<programlisting>
123−services.xserver.synaptics.twoFingerScroll = true;
123+services.xserver.libinput.tapping = false;
124124</programlisting>
125+Note: the use of <literal>services.xserver.synaptics</literal> is deprecated since NixOS 17.09.
125126</para>
126127
127128</simplesect>
nixos/doc/manual/development/option-types.xml+6
@@ -110,6 +110,12 @@
110110 <listitem><para>A string. Multiple definitions are concatenated with a
111111 collon <literal>":"</literal>.</para></listitem>
112112 </varlistentry>
113+ <varlistentry>
114+ <term><varname>types.strMatching</varname></term>
115+ <listitem><para>A string matching a specific regular expression. Multiple
116+ definitions cannot be merged. The regular expression is processed using
117+ <literal>builtins.match</literal>.</para></listitem>
118+ </varlistentry>
113119</variablelist>
114120
115121 </section>
nixos/lib/make-squashfs.nix+27
@@ -19,6 +19,33 @@ stdenv.mkDerivation {
1919 # Add the closures of the top-level store objects.
2020 storePaths=$(perl ${pathsFromGraph} closure-*)
2121
22+ # If a Hydra slave happens to have store paths with bad permissions/mtime,
23+ # abort now so that they don't end up in ISO images in the channel.
24+ # https://github.com/NixOS/nixpkgs/issues/32242
25+ hasBadPaths=""
26+ for path in $storePaths; do
27+ if [ -h "$path" ]; then
28+ continue
29+ fi
30+
31+ mtime=$(stat -c %Y "$path")
32+ mode=$(stat -c %a "$path")
33+
34+ if [ "$mtime" != 1 ]; then
35+ echo "Store path '$path' has an invalid mtime."
36+ hasBadPaths=1
37+ fi
38+ if [ "$mode" != 444 ] && [ "$mode" != 555 ]; then
39+ echo "Store path '$path' has invalid permissions."
40+ hasBadPaths=1
41+ fi
42+ done
43+
44+ if [ -n "$hasBadPaths" ]; then
45+ echo "You have bad paths in your store, please fix them."
46+ exit 1
47+ fi
48+
2249 # Also include a manifest of the closures in a format suitable
2350 # for nix-store --load-db.
2451 printRegistration=1 perl ${pathsFromGraph} closure-* > nix-path-registration
nixos/modules/module-list.nix+1
@@ -588,6 +588,7 @@
588588 ./services/system/cloud-init.nix
589589 ./services/system/dbus.nix
590590 ./services/system/earlyoom.nix
591+ ./services/system/localtime.nix
591592 ./services/system/kerberos.nix
592593 ./services/system/nscd.nix
593594 ./services/system/saslauthd.nix
nixos/modules/services/networking/i2pd.nix+12−5
@@ -126,6 +126,7 @@ let
126126 [${tun.name}]
127127 type = client
128128 destination = ${tun.destination}
129+ destinationport = ${toString tun.destinationPort}
129130 keys = ${tun.keys}
130131 address = ${tun.address}
131132 port = ${toString tun.port}
@@ -137,15 +138,15 @@ let
137138 '')
138139 }
139140 ${flip concatMapStrings
140− (collect (tun: tun ? port && tun ? host) cfg.inTunnels)
141− (tun: let portStr = toString tun.port; in ''
141+ (collect (tun: tun ? port && tun ? address) cfg.inTunnels)
142+ (tun: ''
142143 [${tun.name}]
143144 type = server
144145 destination = ${tun.destination}
145146 keys = ${tun.keys}
146147 host = ${tun.address}
147− port = ${tun.port}
148− inport = ${tun.inPort}
148+ port = ${toString tun.port}
149+ inport = ${toString tun.inPort}
149150 accesslist = ${builtins.concatStringsSep "," tun.accessList}
150151 '')
151152 }
@@ -405,7 +406,13 @@ in
405406 default = {};
406407 type = with types; loaOf (submodule (
407408 { name, config, ... }: {
408− options = commonTunOpts name;
409+ options = {
410+ destinationPort = mkOption {
411+ type = types.int;
412+ default = 0;
413+ description = "Connect to particular port at destination.";
414+ };
415+ } // commonTunOpts name;
409416 config = {
410417 name = mkDefault name;
411418 };
nixos/modules/services/networking/nat.nix+20−3
@@ -53,6 +53,12 @@ let
5353 -j DNAT --to-destination ${fwd.destination}
5454 '') cfg.forwardPorts}
5555
56+ ${optionalString (cfg.dmzHost != null) ''
57+ iptables -w -t nat -A nixos-nat-pre \
58+ -i ${cfg.externalInterface} -j DNAT \
59+ --to-destination ${cfg.dmzHost}
60+ ''}
61+
5662 # Append our chains to the nat tables
5763 iptables -w -t nat -A PREROUTING -j nixos-nat-pre
5864 iptables -w -t nat -A POSTROUTING -j nixos-nat-post
@@ -125,15 +131,15 @@ in
125131 type = with types; listOf (submodule {
126132 options = {
127133 sourcePort = mkOption {
128− type = types.int;
134+ type = types.either types.int (types.strMatching "[[:digit:]]+:[[:digit:]]+");
129135 example = 8080;
130− description = "Source port of the external interface";
136+ description = "Source port of the external interface; to specify a port range, use a string with a colon (e.g. \"60000:61000\")";
131137 };
132138
133139 destination = mkOption {
134140 type = types.str;
135141 example = "10.0.0.1:80";
136− description = "Forward connection to destination ip:port";
142+ description = "Forward connection to destination ip:port; to specify a port range, use ip:start-end";
137143 };
138144
139145 proto = mkOption {
@@ -153,6 +159,17 @@ in
153159 '';
154160 };
155161
162+ networking.nat.dmzHost = mkOption {
163+ type = types.nullOr types.str;
164+ default = null;
165+ example = "10.0.0.1";
166+ description =
167+ ''
168+ The local IP address to which all traffic that does not match any
169+ forwarding rule is forwarded.
170+ '';
171+ };
172+
156173 };
157174
158175
nixos/modules/services/security/tor.nix+81−2
@@ -9,6 +9,26 @@ let
99 opt = name: value: optionalString (value != null) "${name} ${value}";
1010 optint = name: value: optionalString (value != null && value != 0) "${name} ${toString value}";
1111
12+ isolationOptions = {
13+ type = types.listOf (types.enum [
14+ "IsolateClientAddr"
15+ "IsolateSOCKSAuth"
16+ "IsolateClientProtocol"
17+ "IsolateDestPort"
18+ "IsolateDestAddr"
19+ ]);
20+ default = [];
21+ example = [
22+ "IsolateClientAddr"
23+ "IsolateSOCKSAuth"
24+ "IsolateClientProtocol"
25+ "IsolateDestPort"
26+ "IsolateDestAddr"
27+ ];
28+ description = "Tor isolation options";
29+ };
30+
31+
1232 torRc = ''
1333 User tor
1434 DataDirectory ${torDirectory}
@@ -20,10 +40,20 @@ let
2040 ${optint "ControlPort" cfg.controlPort}
2141 ''
2242 # Client connection config
23− + optionalString cfg.client.enable ''
24− SOCKSPort ${cfg.client.socksListenAddress} IsolateDestAddr
43+ + optionalString cfg.client.enable ''
44+ SOCKSPort ${cfg.client.socksListenAddress} ${toString cfg.client.socksIsolationOptions}
2545 SOCKSPort ${cfg.client.socksListenAddressFaster}
2646 ${opt "SocksPolicy" cfg.client.socksPolicy}
47+
48+ ${optionalString cfg.client.transparentProxy.enable ''
49+ TransPort ${cfg.client.transparentProxy.listenAddress} ${toString cfg.client.transparentProxy.isolationOptions}
50+ ''}
51+
52+ ${optionalString cfg.client.dns.enable ''
53+ DNSPort ${cfg.client.dns.listenAddress} ${toString cfg.client.dns.isolationOptions}
54+ AutomapHostsOnResolve 1
55+ AutomapHostsSuffixes ${concatStringsSep "," cfg.client.dns.automapHostsSuffixes}
56+ ''}
2757 ''
2858 # Relay config
2959 + optionalString cfg.relay.enable ''
@@ -154,6 +184,55 @@ in
154184 '';
155185 };
156186
187+ socksIsolationOptions = mkOption (isolationOptions // {
188+ default = ["IsolateDestAddr"];
189+ });
190+
191+ transparentProxy = {
192+ enable = mkOption {
193+ type = types.bool;
194+ default = false;
195+ description = "Whether to enable tor transaprent proxy";
196+ };
197+
198+ listenAddress = mkOption {
199+ type = types.str;
200+ default = "127.0.0.1:9040";
201+ example = "192.168.0.1:9040";
202+ description = ''
203+ Bind transparent proxy to this address.
204+ '';
205+ };
206+
207+ isolationOptions = mkOption isolationOptions;
208+ };
209+
210+ dns = {
211+ enable = mkOption {
212+ type = types.bool;
213+ default = false;
214+ description = "Whether to enable tor dns resolver";
215+ };
216+
217+ listenAddress = mkOption {
218+ type = types.str;
219+ default = "127.0.0.1:9053";
220+ example = "192.168.0.1:9053";
221+ description = ''
222+ Bind tor dns to this address.
223+ '';
224+ };
225+
226+ isolationOptions = mkOption isolationOptions;
227+
228+ automapHostsSuffixes = mkOption {
229+ type = types.listOf types.str;
230+ default = [".onion" ".exit"];
231+ example = [".onion"];
232+ description = "List of suffixes to use with automapHostsOnResolve";
233+ };
234+ };
235+
157236 privoxy.enable = mkOption {
158237 type = types.bool;
159238 default = true;
nixos/modules/services/system/localtime.nixnew file+60
@@ -0,0 +1,60 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.localtime;
7+in {
8+ options = {
9+ services.localtime = {
10+ enable = mkOption {
11+ default = false;
12+ description = ''
13+ Enable <literal>localtime</literal>, simple daemon for keeping the system
14+ timezone up-to-date based on the current location. It uses geoclue2 to
15+ determine the current location and systemd-timedated to actually set
16+ the timezone.
17+ '';
18+ };
19+ };
20+ };
21+
22+ config = mkIf cfg.enable {
23+ services.geoclue2.enable = true;
24+
25+ security.polkit.extraConfig = ''
26+ polkit.addRule(function(action, subject) {
27+ if (action.id == "org.freedesktop.timedate1.set-timezone"
28+ && subject.user == "localtimed") {
29+ return polkit.Result.YES;
30+ }
31+ });
32+ '';
33+
34+ users.users = [{
35+ name = "localtimed";
36+ description = "Taskserver user";
37+ }];
38+
39+ systemd.services.localtime = {
40+ description = "localtime service";
41+ wantedBy = [ "multi-user.target" ];
42+ partOf = [ "geoclue.service "];
43+
44+ serviceConfig = {
45+ Restart = "on-failure";
46+ # TODO: make it work with dbus
47+ #DynamicUser = true;
48+ Nice = 10;
49+ User = "localtimed";
50+ PrivateTmp = "yes";
51+ PrivateDevices = true;
52+ PrivateNetwork = "yes";
53+ NoNewPrivileges = "yes";
54+ ProtectSystem = "strict";
55+ ProtectHome = true;
56+ ExecStart = "${pkgs.localtime}/bin/localtimed";
57+ };
58+ };
59+ };
60+}
nixos/release.nix+1
@@ -336,6 +336,7 @@ in rec {
336336 tests.taskserver = callTest tests/taskserver.nix {};
337337 tests.tomcat = callTest tests/tomcat.nix {};
338338 tests.udisks2 = callTest tests/udisks2.nix {};
339+ tests.vault = callTest tests/vault.nix {};
339340 tests.virtualbox = callSubTests tests/virtualbox.nix { system = "x86_64-linux"; };
340341 tests.wordpress = callTest tests/wordpress.nix {};
341342 tests.xfce = callTest tests/xfce.nix {};
nixos/tests/vault.nixnew file+23
@@ -0,0 +1,23 @@
1+import ./make-test.nix ({ pkgs, ... }:
2+{
3+ name = "vault";
4+ meta = with pkgs.stdenv.lib.maintainers; {
5+ maintainers = [ lnl7 ];
6+ };
7+ machine = { config, pkgs, ... }: {
8+ environment.systemPackages = [ pkgs.vault ];
9+ environment.variables.VAULT_ADDR = "http://127.0.0.1:8200";
10+ services.vault.enable = true;
11+ };
12+
13+ testScript =
14+ ''
15+ startAll;
16+
17+ $machine->waitForUnit('multi-user.target');
18+ $machine->waitForUnit('vault.service');
19+ $machine->waitForOpenPort(8200);
20+ $machine->succeed('vault init');
21+ $machine->succeed('vault status | grep "Sealed: true"');
22+ '';
23+})
pkgs/applications/audio/guitarix/default.nix+2−2
@@ -12,11 +12,11 @@ in
1212
1313stdenv.mkDerivation rec {
1414 name = "guitarix-${version}";
15− version = "0.35.6";
15+ version = "0.36.1";
1616
1717 src = fetchurl {
1818 url = "mirror://sourceforge/guitarix/guitarix2-${version}.tar.xz";
19− sha256 = "0ffvfnvhj6vz73zsrpi88hs69ys4zskm847zf825dl2r39n9nn41";
19+ sha256 = "1g5949jwh2n755xjs3kcbdb8a1wxr5mn0m115wdnk27dxcdn93b0";
2020 };
2121
2222 nativeBuildInputs = [ gettext intltool wrapGAppsHook pkgconfig python2 ];
pkgs/applications/misc/emem/default.nix+2−2
@@ -2,14 +2,14 @@
22
33stdenv.mkDerivation rec {
44 pname = "emem";
5− version = "0.2.48";
5+ version = "0.2.50";
66 name = "${pname}-${version}";
77
88 inherit jdk;
99
1010 src = fetchurl {
1111 url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar";
12− sha256 = "0l68qqjh8lbqb2yqvggiga9qz2j32h3qklcfkycmcffn6l1nlqnq";
12+ sha256 = "18x3s3jrph8k3pc75jgwkfqazygpsx93zjxx68zms58my17cybh1";
1313 };
1414
1515 phases = [ "buildPhase" "installPhase" ];
pkgs/applications/misc/polybar/default.nix+3−11
@@ -21,11 +21,11 @@ assert i3GapsSupport -> ! i3Support && jsoncpp != null && i3-gaps != null;
2121
2222stdenv.mkDerivation rec {
2323 name = "polybar-${version}";
24− version = "3.0.5";
24+ version = "3.1.0";
2525 src = fetchgit {
2626 url = "https://github.com/jaagr/polybar";
27− rev = "4e2e2a7a5e0fe81669031ade0f60e1d379b6516d";
28− sha256 = "1iiks9q13pbkgbjhdns18a5zgr6d40ydcm4qn168m73fs6ivf1vn";
27+ rev = "bf16a4d415ea7d8845f578544de0c71e56ad314e";
28+ sha256 = "1jcvqxl0477j0snvh1rzqsm1dkfsybix2lgrlsgiczdxfknwz8iy";
2929 };
3030
3131 meta = with stdenv.lib; {
@@ -39,14 +39,6 @@ stdenv.mkDerivation rec {
3939 maintainers = [ maintainers.afldcr ];
4040 platforms = platforms.unix;
4141 };
42− # This patch should be removed with next stable release.
43− patches = [
44− (fetchpatch {
45− name = "polybar-remove-curlbuild.patch";
46− url = "https://github.com/jaagr/polybar/commit/d35abc7620c8f06618b4708d9a969dfa2f309e96.patch";
47− sha256 = "14xr65vsjvd51hzg9linj09w0nnixgn26dh9lqxy25bxachcyzxy";
48− })
49− ];
5042
5143 buildInputs = [
5244 cairo libXdmcp libpthreadstubs libxcb pcre python2 xcbproto xcbutil
pkgs/applications/networking/instant-messengers/dino/default.nix+3−3
@@ -13,13 +13,13 @@
1313 }:
1414
1515stdenv.mkDerivation rec {
16− name = "dino-unstable-2017-09-26";
16+ name = "dino-unstable-2017-12-03";
1717
1818 src = fetchFromGitHub {
1919 owner = "dino";
2020 repo = "dino";
21− rev = "9d8e1e88ec61403659a8cc410d5c4414e3bd3a96";
22− sha256 = "1p8sda99n8zsb49qd6wzwb8hddlgrzr2hp7il5v7yqxjjm2vgqfl";
21+ rev = "cee39b0117c1620d852d50c14ca6f06db4e2956b";
22+ sha256 = "15cm6y2rgj6fcw8sciygd1wvcw7k9fgf69ji1abfwybzydflj7ny";
2323 fetchSubmodules = true;
2424 };
2525
pkgs/applications/virtualization/open-vm-tools/default.nix+1−1
@@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
5959 better management of, and seamless user interactions with, guests.
6060 '';
6161 license = licenses.gpl2;
62− platforms = platforms.linux;
62+ platforms = [ "x86_64-linux" "i686-linux" ];
6363 maintainers = with maintainers; [ joamaki ];
6464 };
6565}
pkgs/applications/virtualization/virtualbox/default.nix+1−1
@@ -199,6 +199,6 @@ in stdenv.mkDerivation {
199199 description = "PC emulator";
200200 homepage = http://www.virtualbox.org/;
201201 maintainers = [ lib.maintainers.sander ];
202− platforms = lib.platforms.linux;
202+ platforms = [ "x86_64-linux" "i686-linux" ];
203203 };
204204}
pkgs/data/misc/geolite-legacy/default.nix+7−7
@@ -8,26 +8,26 @@ let
88in
99stdenv.mkDerivation rec {
1010 name = "geolite-legacy-${version}";
11− version = "2017-09-17";
11+ version = "2017-12-02";
1212
1313 srcGeoIP = fetchDB
1414 "GeoLiteCountry/GeoIP.dat.gz"
15− "1xqxlnxxk8grqr0nr9vaf5r6z5bcdbadh83qhzr6jvhs20s37lsl";
15+ "1nggml11wzlanmzk6wbw2kla91fj8ggd9kh9yz42lnyckdlf5ac4";
1616 srcGeoIPv6 = fetchDB
1717 "GeoIPv6.dat.gz"
18− "0g3am25jmhm3r51hvz9lknkrnzj98hxdxav2cvrhz6b7wndgyspk";
18+ "0w809xgmr5zi4fgm9q3lhrnh1vl62s49n737bhq4jplm5918ki50";
1919 srcGeoLiteCity = fetchDB
2020 "GeoLiteCity.dat.gz"
21− "1syw19gx2mpqz9ypkaq2gh712bv60a7rf56afzd3qzkmgf6rw1qr";
21+ "0cibajsv5xdjpw1qfx22izm5azqcj0d7nvk39irgwflkim9jfjbs";
2222 srcGeoLiteCityv6 = fetchDB
2323 "GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz"
24− "0ihbqm1f5b9qb68i73ghmk30b6i2n53fmmhv2wadja5zcdpkhdvk";
24+ "1ldwbzgs64irfgb3kq3jp8fmhwmwqk713dr4kkdqlglrblr9hfkc";
2525 srcGeoIPASNum = fetchDB
2626 "asnum/GeoIPASNum.dat.gz"
27− "0adddsk0g9a3xaa0f8qx12s07n31wvirymjzrhnsg66i2qlm0h34";
27+ "06qqs8qr8vxqwd80npz7n66k3bpc1vs7w43i2bb4k0di5yxnjwr9";
2828 srcGeoIPASNumv6 = fetchDB
2929 "asnum/GeoIPASNumv6.dat.gz"
30− "1qar0vdlpk3razq83l5fzb54zihs2sma8xgngpql8njfgby0w825";
30+ "1qyq4h8cja62giv6q1qqc502vsq53wzz1kx80mgvwngmycrxa21k";
3131
3232 meta = with stdenv.lib; {
3333 description = "GeoLite Legacy IP geolocation databases";
pkgs/desktops/gnome-3/misc/gpaste/default.nix+1−1
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 gtk3 gnome3.gnome_control_center dbus
1616 clutter pango appstream-glib systemd gobjectIntrospection ];
1717
18− configureFlags = [ "--with-controlcenterdir=$(out)/gnome-control-center/keybindings"
18+ configureFlags = [ "--with-controlcenterdir=$(out)/share/gnome-control-center/keybindings"
1919 "--with-dbusservicesdir=$(out)/share/dbus-1/services"
2020 "--with-systemduserunitdir=$(out)/etc/systemd/user" ];
2121
pkgs/desktops/plasma-5/fetch.sh+1−1
@@ -1 +1 @@
1−WGET_ARGS=( https://download.kde.org/stable/plasma/5.11.3/ -A '*.tar.xz' )
1+WGET_ARGS=( https://download.kde.org/stable/plasma/5.11.4/ -A '*.tar.xz' )
pkgs/desktops/plasma-5/srcs.nix+176−176
@@ -3,355 +3,355 @@
33
44{
55 bluedevil = {
6− version = "5.11.3";
6+ version = "5.11.4";
77 src = fetchurl {
8− url = "${mirror}/stable/plasma/5.11.3/bluedevil-5.11.3.tar.xz";
9− sha256 = "1sgnj3z4s1k7h2ddvcq9r67qc8gbd4yv7zb9a24gi3x3iwd5hsf3";
10− name = "bluedevil-5.11.3.tar.xz";
8+ url = "${mirror}/stable/plasma/5.11.4/bluedevil-5.11.4.tar.xz";
9+ sha256 = "1xjvx5w2pkwj63hdxjkh4fdqyydxvc2sqg1pwkwqnw58z78lhq20";
10+ name = "bluedevil-5.11.4.tar.xz";
1111 };
1212 };
1313 breeze = {
14− version = "5.11.3";
14+ version = "5.11.4";
1515 src = fetchurl {
16− url = "${mirror}/stable/plasma/5.11.3/breeze-5.11.3.tar.xz";
17− sha256 = "1xlh8m9fw3009gdi0v1nn945rm1zg908apv8v9lgkgks6s2sspxk";
18− name = "breeze-5.11.3.tar.xz";
16+ url = "${mirror}/stable/plasma/5.11.4/breeze-5.11.4.tar.xz";
17+ sha256 = "0nxp13x5326ahkrb37rbrsn7xhl9gbrrpnbhhflmr9zdx2af7700";
18+ name = "breeze-5.11.4.tar.xz";
1919 };
2020 };
2121 breeze-grub = {
22− version = "5.11.3";
22+ version = "5.11.4";
2323 src = fetchurl {
24− url = "${mirror}/stable/plasma/5.11.3/breeze-grub-5.11.3.tar.xz";
25− sha256 = "1v1ha0j9kh4vcxknnwk78lzigvpqdrcj4gv6h86pxmwsipr5l2bl";
26− name = "breeze-grub-5.11.3.tar.xz";
24+ url = "${mirror}/stable/plasma/5.11.4/breeze-grub-5.11.4.tar.xz";
25+ sha256 = "1yz31j3dgzkliz8sk80d6fs0afnd45nw6xkhrws2aar2rnn9d1w4";
26+ name = "breeze-grub-5.11.4.tar.xz";
2727 };
2828 };
2929 breeze-gtk = {
30− version = "5.11.3";
30+ version = "5.11.4";
3131 src = fetchurl {
32− url = "${mirror}/stable/plasma/5.11.3/breeze-gtk-5.11.3.tar.xz";
33− sha256 = "1f9xlmc6mhr25mji8ir46qslnfa0i7q7pqkzp1hm5ss3kzdd45gb";
34− name = "breeze-gtk-5.11.3.tar.xz";
32+ url = "${mirror}/stable/plasma/5.11.4/breeze-gtk-5.11.4.tar.xz";
33+ sha256 = "0n9fn3jp610g617561c8pr7i9v4k6cdpyqi7kl4f56h6cwq6b0ga";
34+ name = "breeze-gtk-5.11.4.tar.xz";
3535 };
3636 };
3737 breeze-plymouth = {
38− version = "5.11.3";
38+ version = "5.11.4";
3939 src = fetchurl {
40− url = "${mirror}/stable/plasma/5.11.3/breeze-plymouth-5.11.3.tar.xz";
41− sha256 = "11m65cg74cfhglsppahnppisqp4rnj528b93k78pgvb4xazm7s76";
42− name = "breeze-plymouth-5.11.3.tar.xz";
40+ url = "${mirror}/stable/plasma/5.11.4/breeze-plymouth-5.11.4.tar.xz";
41+ sha256 = "099hl3dfcc3n4yh94hdhgnwy01a74s6as2yma57idcqw2akf6d0v";
42+ name = "breeze-plymouth-5.11.4.tar.xz";
4343 };
4444 };
4545 discover = {
46− version = "5.11.3";
46+ version = "5.11.4";
4747 src = fetchurl {
48− url = "${mirror}/stable/plasma/5.11.3/discover-5.11.3.tar.xz";
49− sha256 = "1bavw2hynmznd72wmh4cmy6zs4a13gxcsh6gznd99g6shry8svix";
50− name = "discover-5.11.3.tar.xz";
48+ url = "${mirror}/stable/plasma/5.11.4/discover-5.11.4.tar.xz";
49+ sha256 = "1n6s52n8ynsymcwjckkfxrnzsj15f10if8r3ka5qhd7w6nb2x2iz";
50+ name = "discover-5.11.4.tar.xz";
5151 };
5252 };
5353 drkonqi = {
54− version = "5.11.3";
54+ version = "5.11.4";
5555 src = fetchurl {
56− url = "${mirror}/stable/plasma/5.11.3/drkonqi-5.11.3.tar.xz";
57− sha256 = "1683h4nzk9kgwzwjzkr0bmk8vmq07991x4239z3p39z4gnvsmb0h";
58− name = "drkonqi-5.11.3.tar.xz";
56+ url = "${mirror}/stable/plasma/5.11.4/drkonqi-5.11.4.tar.xz";
57+ sha256 = "0vnfx8sha9mdsdb5baw5xwlswm32wmd96kv8yzm3zr67fkz95n3s";
58+ name = "drkonqi-5.11.4.tar.xz";
5959 };
6060 };
6161 kactivitymanagerd = {
62− version = "5.11.3";
62+ version = "5.11.4";
6363 src = fetchurl {
64− url = "${mirror}/stable/plasma/5.11.3/kactivitymanagerd-5.11.3.tar.xz";
65− sha256 = "1syprfgbcg1821v0mqnalnn3gr40sfvi3m9wcy1hbffqm2k561qq";
66− name = "kactivitymanagerd-5.11.3.tar.xz";
64+ url = "${mirror}/stable/plasma/5.11.4/kactivitymanagerd-5.11.4.tar.xz";
65+ sha256 = "10942fzaai30agzmbldwiwycpb7198qhgk3jr2p5wlfrawl1sl4q";
66+ name = "kactivitymanagerd-5.11.4.tar.xz";
6767 };
6868 };
6969 kde-cli-tools = {
70− version = "5.11.3";
70+ version = "5.11.4";
7171 src = fetchurl {
72− url = "${mirror}/stable/plasma/5.11.3/kde-cli-tools-5.11.3.tar.xz";
73− sha256 = "0yhghfsyvx0xlmyigjm8hvp8d4s6pp8h6wbqrbfngslayq624cvi";
74− name = "kde-cli-tools-5.11.3.tar.xz";
72+ url = "${mirror}/stable/plasma/5.11.4/kde-cli-tools-5.11.4.tar.xz";
73+ sha256 = "07415ssr25lnr9klv6r7jclf9l5mca6dxf6xskwgixcap1fl5vdg";
74+ name = "kde-cli-tools-5.11.4.tar.xz";
7575 };
7676 };
7777 kdecoration = {
78− version = "5.11.3";
78+ version = "5.11.4";
7979 src = fetchurl {
80− url = "${mirror}/stable/plasma/5.11.3/kdecoration-5.11.3.tar.xz";
81− sha256 = "0ik62pavf9bw1mahiyqlc9qh2za31l4qa3fyz42y81phmr8hbj4a";
82− name = "kdecoration-5.11.3.tar.xz";
80+ url = "${mirror}/stable/plasma/5.11.4/kdecoration-5.11.4.tar.xz";
81+ sha256 = "0vvhhdd3jlb7x9zdc3bjalchhvjkg411ip379rifn9z7zxbrsq9m";
82+ name = "kdecoration-5.11.4.tar.xz";
8383 };
8484 };
8585 kde-gtk-config = {
86− version = "5.11.3";
86+ version = "5.11.4";
8787 src = fetchurl {
88− url = "${mirror}/stable/plasma/5.11.3/kde-gtk-config-5.11.3.tar.xz";
89− sha256 = "09k02ghsrc5bwk05a7jlyzgwr6a1mzwypy6q1yhkl8jcqaim18ff";
90− name = "kde-gtk-config-5.11.3.tar.xz";
88+ url = "${mirror}/stable/plasma/5.11.4/kde-gtk-config-5.11.4.tar.xz";
89+ sha256 = "08s5z7lck37cyzkkg5v9qrnlfxjrpfd565y2i1ng9k6vm9m39172";
90+ name = "kde-gtk-config-5.11.4.tar.xz";
9191 };
9292 };
9393 kdeplasma-addons = {
94− version = "5.11.3";
94+ version = "5.11.4";
9595 src = fetchurl {
96− url = "${mirror}/stable/plasma/5.11.3/kdeplasma-addons-5.11.3.tar.xz";
97− sha256 = "13vmr5m3gx2b757bnb74qjjr6faj2bn1qb9cngj0gnk9gbdgrwh1";
98− name = "kdeplasma-addons-5.11.3.tar.xz";
96+ url = "${mirror}/stable/plasma/5.11.4/kdeplasma-addons-5.11.4.tar.xz";
97+ sha256 = "19ywc3ryjax7g7wg969j256n4cr3n51lzxsw4gklf4n0px4pk2pi";
98+ name = "kdeplasma-addons-5.11.4.tar.xz";
9999 };
100100 };
101101 kgamma5 = {
102− version = "5.11.3";
102+ version = "5.11.4";
103103 src = fetchurl {
104− url = "${mirror}/stable/plasma/5.11.3/kgamma5-5.11.3.tar.xz";
105− sha256 = "18g8rj4l1y1lwl2wrk4cdlpdn6gibbwbipdkmlk0hb4ad1bxkc96";
106− name = "kgamma5-5.11.3.tar.xz";
104+ url = "${mirror}/stable/plasma/5.11.4/kgamma5-5.11.4.tar.xz";
105+ sha256 = "1njzb06hk0lpj3s6i2hmlww0k7122dca9mi0rbr0ilfwha36ib2s";
106+ name = "kgamma5-5.11.4.tar.xz";
107107 };
108108 };
109109 khotkeys = {
110− version = "5.11.3";
110+ version = "5.11.4";
111111 src = fetchurl {
112− url = "${mirror}/stable/plasma/5.11.3/khotkeys-5.11.3.tar.xz";
113− sha256 = "1bykjywj6yass35xv858azv9pw74wlqsss6hs9ra4sx0yh0n9ffp";
114− name = "khotkeys-5.11.3.tar.xz";
112+ url = "${mirror}/stable/plasma/5.11.4/khotkeys-5.11.4.tar.xz";
113+ sha256 = "0wszl7bzjl6gszvg9n4p8x3m6h0x5xx3qz3yi1y6g5mplfg7h0c6";
114+ name = "khotkeys-5.11.4.tar.xz";
115115 };
116116 };
117117 kinfocenter = {
118− version = "5.11.3";
118+ version = "5.11.4";
119119 src = fetchurl {
120− url = "${mirror}/stable/plasma/5.11.3/kinfocenter-5.11.3.tar.xz";
121− sha256 = "1ip6zkrl81v987z7bj0mvkjmydyarxgih4gzkbgnpppl7746bs5n";
122− name = "kinfocenter-5.11.3.tar.xz";
120+ url = "${mirror}/stable/plasma/5.11.4/kinfocenter-5.11.4.tar.xz";
121+ sha256 = "0ff3v90fj187glb22rvp27kp1b83br71vshcq2cpfzrbv97wrqf4";
122+ name = "kinfocenter-5.11.4.tar.xz";
123123 };
124124 };
125125 kmenuedit = {
126− version = "5.11.3";
126+ version = "5.11.4";
127127 src = fetchurl {
128− url = "${mirror}/stable/plasma/5.11.3/kmenuedit-5.11.3.tar.xz";
129− sha256 = "1nks0lk1xnywx5r3bzr5npzapg5d25l73ygxq8988q1f4q39jlj6";
130− name = "kmenuedit-5.11.3.tar.xz";
128+ url = "${mirror}/stable/plasma/5.11.4/kmenuedit-5.11.4.tar.xz";
129+ sha256 = "0kbqrri7mnnarfw45k7j3ckxdpkasc25prvn1zlhci0acqhz0skk";
130+ name = "kmenuedit-5.11.4.tar.xz";
131131 };
132132 };
133133 kscreen = {
134− version = "5.11.3";
134+ version = "5.11.4";
135135 src = fetchurl {
136− url = "${mirror}/stable/plasma/5.11.3/kscreen-5.11.3.tar.xz";
137− sha256 = "03wcrqvqcsw47x504ydk3dkqw6x9dc2n3skh7asznmpda8ryb6dp";
138− name = "kscreen-5.11.3.tar.xz";
136+ url = "${mirror}/stable/plasma/5.11.4/kscreen-5.11.4.tar.xz";
137+ sha256 = "0rjy594qj9825gan3r4iw4qphnksnrfn2f1dgyvd63ds70xm272h";
138+ name = "kscreen-5.11.4.tar.xz";
139139 };
140140 };
141141 kscreenlocker = {
142− version = "5.11.3";
142+ version = "5.11.4";
143143 src = fetchurl {
144− url = "${mirror}/stable/plasma/5.11.3/kscreenlocker-5.11.3.tar.xz";
145− sha256 = "0i0xcakzznxsk0zqa664xavp64wbqgqim57bkp01wl82s3aik82v";
146− name = "kscreenlocker-5.11.3.tar.xz";
144+ url = "${mirror}/stable/plasma/5.11.4/kscreenlocker-5.11.4.tar.xz";
145+ sha256 = "0r2438s7gs39qbkprx90smvb8mlgqm486qgv34ljx9vi0zm4kq47";
146+ name = "kscreenlocker-5.11.4.tar.xz";
147147 };
148148 };
149149 ksshaskpass = {
150− version = "5.11.3";
150+ version = "5.11.4";
151151 src = fetchurl {
152− url = "${mirror}/stable/plasma/5.11.3/ksshaskpass-5.11.3.tar.xz";
153− sha256 = "1ij2xspd6clf8plqqgzx6zjq7c1sxrlf7ch9brnxprw29h5qfz34";
154− name = "ksshaskpass-5.11.3.tar.xz";
152+ url = "${mirror}/stable/plasma/5.11.4/ksshaskpass-5.11.4.tar.xz";
153+ sha256 = "1wqzwvlimw5mkq1hfzjjw9az3g9bdqkiw9m7vrxfb67asgmmbrbx";
154+ name = "ksshaskpass-5.11.4.tar.xz";
155155 };
156156 };
157157 ksysguard = {
158− version = "5.11.3";
158+ version = "5.11.4";
159159 src = fetchurl {
160− url = "${mirror}/stable/plasma/5.11.3/ksysguard-5.11.3.tar.xz";
161− sha256 = "17b5lddmas5n1726xa5r8v0v6gmw6bzpvhcljk2r4yrly6gy3pv9";
162− name = "ksysguard-5.11.3.tar.xz";
160+ url = "${mirror}/stable/plasma/5.11.4/ksysguard-5.11.4.tar.xz";
161+ sha256 = "1dl5q6k2ipdwlg8i5bh2xsz20wg5dwn8401rba9jzp3la97id2sc";
162+ name = "ksysguard-5.11.4.tar.xz";
163163 };
164164 };
165165 kwallet-pam = {
166− version = "5.11.3";
166+ version = "5.11.4";
167167 src = fetchurl {
168− url = "${mirror}/stable/plasma/5.11.3/kwallet-pam-5.11.3.tar.xz";
169− sha256 = "04ps2p3hjvkca8miqmg0xwh3i5van0jld2hb1xp737hy1dfpi9h4";
170− name = "kwallet-pam-5.11.3.tar.xz";
168+ url = "${mirror}/stable/plasma/5.11.4/kwallet-pam-5.11.4.tar.xz";
169+ sha256 = "0xkgm0i0x1kcw4rcsv762pqs1vk2gxi09n421whq9ibmj8cm2ky2";
170+ name = "kwallet-pam-5.11.4.tar.xz";
171171 };
172172 };
173173 kwayland-integration = {
174− version = "5.11.3";
174+ version = "5.11.4";
175175 src = fetchurl {
176− url = "${mirror}/stable/plasma/5.11.3/kwayland-integration-5.11.3.tar.xz";
177− sha256 = "0j5czhq5r8pxy7pw00by0v75kk4lbijn7mrdnydlca3jjrdcgz6f";
178− name = "kwayland-integration-5.11.3.tar.xz";
176+ url = "${mirror}/stable/plasma/5.11.4/kwayland-integration-5.11.4.tar.xz";
177+ sha256 = "03azlds5iv3mq7g1livrqca4k30znac088qllzl4rh0mfmw4bmcy";
178+ name = "kwayland-integration-5.11.4.tar.xz";
179179 };
180180 };
181181 kwin = {
182− version = "5.11.3";
182+ version = "5.11.4";
183183 src = fetchurl {
184− url = "${mirror}/stable/plasma/5.11.3/kwin-5.11.3.tar.xz";
185− sha256 = "1xgx7xn27lzqdwla45scfcnyxva97j2y2m7hgj60cd1mz686pill";
186− name = "kwin-5.11.3.tar.xz";
184+ url = "${mirror}/stable/plasma/5.11.4/kwin-5.11.4.tar.xz";
185+ sha256 = "0lfp2nyh28mlqbm3qjhd9adgp8w8j2gfn6xzw8ckxmkrzpdv52gr";
186+ name = "kwin-5.11.4.tar.xz";
187187 };
188188 };
189189 kwrited = {
190− version = "5.11.3";
190+ version = "5.11.4";
191191 src = fetchurl {
192− url = "${mirror}/stable/plasma/5.11.3/kwrited-5.11.3.tar.xz";
193− sha256 = "0qm3x6ahnis1b98q9h53wdldsj7nqw35s1hcgfqzjqk7nnxzim5i";
194− name = "kwrited-5.11.3.tar.xz";
192+ url = "${mirror}/stable/plasma/5.11.4/kwrited-5.11.4.tar.xz";
193+ sha256 = "16l280dh3fw0sn3h9yprb74wmc0adsqq092s4dyka55md06qzqif";
194+ name = "kwrited-5.11.4.tar.xz";
195195 };
196196 };
197197 libkscreen = {
198− version = "5.11.3";
198+ version = "5.11.4";
199199 src = fetchurl {
200− url = "${mirror}/stable/plasma/5.11.3/libkscreen-5.11.3.tar.xz";
201− sha256 = "01wbl1kinsvxfw5lq0wrhsk0fmv8gvkhr7m0w4lq1827wx68lfzw";
202− name = "libkscreen-5.11.3.tar.xz";
200+ url = "${mirror}/stable/plasma/5.11.4/libkscreen-5.11.4.tar.xz";
201+ sha256 = "0sv3q6zmplm0iz6ax87763mg771zvk1dfdh2gmiz2dn2lnxbkrzd";
202+ name = "libkscreen-5.11.4.tar.xz";
203203 };
204204 };
205205 libksysguard = {
206− version = "5.11.3";
206+ version = "5.11.4";
207207 src = fetchurl {
208− url = "${mirror}/stable/plasma/5.11.3/libksysguard-5.11.3.tar.xz";
209− sha256 = "1jbcd2n1zd6ijybaffm5vs5b80130vii562s98xhinmifzsahzmy";
210− name = "libksysguard-5.11.3.tar.xz";
208+ url = "${mirror}/stable/plasma/5.11.4/libksysguard-5.11.4.tar.xz";
209+ sha256 = "1ry4478fv7blp80zyhz0xr3qragsddrkzjzmxkdarh01f4p987aq";
210+ name = "libksysguard-5.11.4.tar.xz";
211211 };
212212 };
213213 milou = {
214− version = "5.11.3";
214+ version = "5.11.4";
215215 src = fetchurl {
216− url = "${mirror}/stable/plasma/5.11.3/milou-5.11.3.tar.xz";
217− sha256 = "02j6f4ip7hgb5qpq9812g1pnm8fjd83dc923gyfpzb4i0nf6j93g";
218− name = "milou-5.11.3.tar.xz";
216+ url = "${mirror}/stable/plasma/5.11.4/milou-5.11.4.tar.xz";
217+ sha256 = "1zq6gcmjc4wa23b2c94nwsxranpangl2b3apj56qpl68bjfvlrbq";
218+ name = "milou-5.11.4.tar.xz";
219219 };
220220 };
221221 oxygen = {
222− version = "5.11.3";
222+ version = "5.11.4";
223223 src = fetchurl {
224− url = "${mirror}/stable/plasma/5.11.3/oxygen-5.11.3.tar.xz";
225− sha256 = "0zg3qdnip1ad6980ga0lmxndbph3y4dw0qk73dd8022qw5f3ysyp";
226− name = "oxygen-5.11.3.tar.xz";
224+ url = "${mirror}/stable/plasma/5.11.4/oxygen-5.11.4.tar.xz";
225+ sha256 = "0vfs220w6rc0vf5y2qshqby1jmd5kgm0gqkzg9ckgvjm0skbk75z";
226+ name = "oxygen-5.11.4.tar.xz";
227227 };
228228 };
229229 plasma-desktop = {
230− version = "5.11.3";
230+ version = "5.11.4";
231231 src = fetchurl {
232− url = "${mirror}/stable/plasma/5.11.3/plasma-desktop-5.11.3.tar.xz";
233− sha256 = "1igmq8zj71wf34ap2g0iakpjfq08mlg6yf1ly06111ygsinbg55a";
234− name = "plasma-desktop-5.11.3.tar.xz";
232+ url = "${mirror}/stable/plasma/5.11.4/plasma-desktop-5.11.4.tar.xz";
233+ sha256 = "0adc9fi582x7gkxsxz3xhs0h6ardxbcxsl5xxzi3y2bmhd4f7vrq";
234+ name = "plasma-desktop-5.11.4.tar.xz";
235235 };
236236 };
237237 plasma-integration = {
238− version = "5.11.3";
238+ version = "5.11.4";
239239 src = fetchurl {
240− url = "${mirror}/stable/plasma/5.11.3/plasma-integration-5.11.3.tar.xz";
241− sha256 = "0bqw5xp71yxciqzd3bmlgsd4mkjl4vcysd9s6bka5mxrlhkqxgx1";
242− name = "plasma-integration-5.11.3.tar.xz";
240+ url = "${mirror}/stable/plasma/5.11.4/plasma-integration-5.11.4.tar.xz";
241+ sha256 = "0wialbswpgf03paxfr4473sgb11fymxw34xvwdql6wwks86xyf6k";
242+ name = "plasma-integration-5.11.4.tar.xz";
243243 };
244244 };
245245 plasma-nm = {
246− version = "5.11.3";
246+ version = "5.11.4";
247247 src = fetchurl {
248− url = "${mirror}/stable/plasma/5.11.3/plasma-nm-5.11.3.tar.xz";
249− sha256 = "1zqlg5jm3pgiirr98j3fl1h6wbhf4f06qainpy42b5w42vhizspk";
250− name = "plasma-nm-5.11.3.tar.xz";
248+ url = "${mirror}/stable/plasma/5.11.4/plasma-nm-5.11.4.tar.xz";
249+ sha256 = "1kjbad69s3dfqgv1zyfzq7bmfyhr0hd4xwhf6bljad8d2l5azydi";
250+ name = "plasma-nm-5.11.4.tar.xz";
251251 };
252252 };
253253 plasma-pa = {
254− version = "5.11.3";
254+ version = "5.11.4";
255255 src = fetchurl {
256− url = "${mirror}/stable/plasma/5.11.3/plasma-pa-5.11.3.tar.xz";
257− sha256 = "07rwlqpmvbvdidhfhw8xk6lvarimd1mhm085vjk7g2wmzw5n69wl";
258− name = "plasma-pa-5.11.3.tar.xz";
256+ url = "${mirror}/stable/plasma/5.11.4/plasma-pa-5.11.4.tar.xz";
257+ sha256 = "0zg34xs3fbxig63i1lf0hyfsmsis3d5gmlgyqc0vkdbwg6l2qpbw";
258+ name = "plasma-pa-5.11.4.tar.xz";
259259 };
260260 };
261261 plasma-sdk = {
262− version = "5.11.3";
262+ version = "5.11.4";
263263 src = fetchurl {
264− url = "${mirror}/stable/plasma/5.11.3/plasma-sdk-5.11.3.tar.xz";
265− sha256 = "17h42223agz4vvbff13xd1p7xa5swnhcrmh1779mswl1rfznrkys";
266− name = "plasma-sdk-5.11.3.tar.xz";
264+ url = "${mirror}/stable/plasma/5.11.4/plasma-sdk-5.11.4.tar.xz";
265+ sha256 = "0vis5psn2zyglkd6gcgqsnf99b38dcjpq3rwbyhj8rfjcakdg4nx";
266+ name = "plasma-sdk-5.11.4.tar.xz";
267267 };
268268 };
269269 plasma-tests = {
270− version = "5.11.3";
270+ version = "5.11.4";
271271 src = fetchurl {
272− url = "${mirror}/stable/plasma/5.11.3/plasma-tests-5.11.3.tar.xz";
273− sha256 = "0ac2i66f3mywvkf7041sg3hsa97f69y5aibpk0fz41q9zi5jwzv3";
274− name = "plasma-tests-5.11.3.tar.xz";
272+ url = "${mirror}/stable/plasma/5.11.4/plasma-tests-5.11.4.tar.xz";
273+ sha256 = "1kifka84csqsm3qjycagwx093hv3n5wsxl8p6xpa44cxjg4xjqfa";
274+ name = "plasma-tests-5.11.4.tar.xz";
275275 };
276276 };
277277 plasma-vault = {
278− version = "5.11.3";
278+ version = "5.11.4";
279279 src = fetchurl {
280− url = "${mirror}/stable/plasma/5.11.3/plasma-vault-5.11.3.tar.xz";
281− sha256 = "12y2331lpp7i3fl6nbm78n6qh7hd7vmrvc94jkzwx5pbql6nx2ia";
282− name = "plasma-vault-5.11.3.tar.xz";
280+ url = "${mirror}/stable/plasma/5.11.4/plasma-vault-5.11.4.tar.xz";
281+ sha256 = "1pymr6hiz0j4x98dchrzsq17ddlbcj5f9dggzr0fiw4sm5yvyxz0";
282+ name = "plasma-vault-5.11.4.tar.xz";
283283 };
284284 };
285285 plasma-workspace = {
286− version = "5.11.3";
286+ version = "5.11.4";
287287 src = fetchurl {
288− url = "${mirror}/stable/plasma/5.11.3/plasma-workspace-5.11.3.tar.xz";
289− sha256 = "0skn3mg90ghx3bmlj7snbhap9z2fq0hab0gfi4pv80ggyl5jf9sp";
290− name = "plasma-workspace-5.11.3.tar.xz";
288+ url = "${mirror}/stable/plasma/5.11.4/plasma-workspace-5.11.4.tar.xz";
289+ sha256 = "1qin68zcczgf3rwa8gg4i3rcsy6i8na9z8kk4bm9q3mfagbzqfx8";
290+ name = "plasma-workspace-5.11.4.tar.xz";
291291 };
292292 };
293293 plasma-workspace-wallpapers = {
294− version = "5.11.3";
294+ version = "5.11.4";
295295 src = fetchurl {
296− url = "${mirror}/stable/plasma/5.11.3/plasma-workspace-wallpapers-5.11.3.tar.xz";
297− sha256 = "1xbfghhb6bjlqs2fk3z8k3q0lfirqmyqyxym2w8k69im2fscg0rl";
298− name = "plasma-workspace-wallpapers-5.11.3.tar.xz";
296+ url = "${mirror}/stable/plasma/5.11.4/plasma-workspace-wallpapers-5.11.4.tar.xz";
297+ sha256 = "09q63i85d82fdq9vafv55wiflndil048ryn9n3kpa4v9s0yjklkh";
298+ name = "plasma-workspace-wallpapers-5.11.4.tar.xz";
299299 };
300300 };
301301 plymouth-kcm = {
302− version = "5.11.3";
302+ version = "5.11.4";
303303 src = fetchurl {
304− url = "${mirror}/stable/plasma/5.11.3/plymouth-kcm-5.11.3.tar.xz";
305− sha256 = "1sbxwvi402lcnzxalgr85srh8vd4wy26gav7q23qbhd5axh26f06";
306− name = "plymouth-kcm-5.11.3.tar.xz";
304+ url = "${mirror}/stable/plasma/5.11.4/plymouth-kcm-5.11.4.tar.xz";
305+ sha256 = "17jyg6133xb0f1dm1c0cpys2008aa65k1y1ap4b3y29xyv1p79rd";
306+ name = "plymouth-kcm-5.11.4.tar.xz";
307307 };
308308 };
309309 polkit-kde-agent = {
310− version = "1-5.11.3";
310+ version = "1-5.11.4";
311311 src = fetchurl {
312− url = "${mirror}/stable/plasma/5.11.3/polkit-kde-agent-1-5.11.3.tar.xz";
313− sha256 = "088ch67syimxqlda0nczrrj1hb7ynsrwdcb0bq1pcndp57p71vzl";
314− name = "polkit-kde-agent-1-5.11.3.tar.xz";
312+ url = "${mirror}/stable/plasma/5.11.4/polkit-kde-agent-1-5.11.4.tar.xz";
313+ sha256 = "004ra4nb6dh3b1lmpfg303fg7201d2sm9f4glkj0mk3a0s9fkfcw";
314+ name = "polkit-kde-agent-1-5.11.4.tar.xz";
315315 };
316316 };
317317 powerdevil = {
318− version = "5.11.3";
318+ version = "5.11.4";
319319 src = fetchurl {
320− url = "${mirror}/stable/plasma/5.11.3/powerdevil-5.11.3.tar.xz";
321− sha256 = "1807x3vzq24vip7dnl87cd1hn368vqk7cbyhai492irf20j7hn82";
322− name = "powerdevil-5.11.3.tar.xz";
320+ url = "${mirror}/stable/plasma/5.11.4/powerdevil-5.11.4.tar.xz";
321+ sha256 = "0cncn8xv5sqv1wqmnmhmqn2jznzy7yik4hvq0vadsrh4blyzwyrj";
322+ name = "powerdevil-5.11.4.tar.xz";
323323 };
324324 };
325325 sddm-kcm = {
326− version = "5.11.3";
326+ version = "5.11.4";
327327 src = fetchurl {
328− url = "${mirror}/stable/plasma/5.11.3/sddm-kcm-5.11.3.tar.xz";
329− sha256 = "1c9dm8819yaynq6cbzcg0j77cz0cf2cwrz9cfmr4w65ypl937va5";
330− name = "sddm-kcm-5.11.3.tar.xz";
328+ url = "${mirror}/stable/plasma/5.11.4/sddm-kcm-5.11.4.tar.xz";
329+ sha256 = "1jhm5gbz296hk1dc7476kw23v73l7s939baln5v5pax349w40l23";
330+ name = "sddm-kcm-5.11.4.tar.xz";
331331 };
332332 };
333333 systemsettings = {
334− version = "5.11.3";
334+ version = "5.11.4";
335335 src = fetchurl {
336− url = "${mirror}/stable/plasma/5.11.3/systemsettings-5.11.3.tar.xz";
337− sha256 = "1abza0qmdhfdlr2k53lc4ymr42ri1pfv0yyf9plxhra7f7f2ylf7";
338− name = "systemsettings-5.11.3.tar.xz";
336+ url = "${mirror}/stable/plasma/5.11.4/systemsettings-5.11.4.tar.xz";
337+ sha256 = "1j555f505hbc2zmg7biv05llzd2bb58z5ccspdgcvmskkwm2rlb3";
338+ name = "systemsettings-5.11.4.tar.xz";
339339 };
340340 };
341341 user-manager = {
342− version = "5.11.3";
342+ version = "5.11.4";
343343 src = fetchurl {
344− url = "${mirror}/stable/plasma/5.11.3/user-manager-5.11.3.tar.xz";
345− sha256 = "0d2i3ndq9vwr2m39i6qdn18bg4c19rqhfy2a38lhm30g288wxfbr";
346− name = "user-manager-5.11.3.tar.xz";
344+ url = "${mirror}/stable/plasma/5.11.4/user-manager-5.11.4.tar.xz";
345+ sha256 = "0mz6kaqwns57bwp2gl7qzm7mwq3w2qh6kyp7m5qqh96wgq133c55";
346+ name = "user-manager-5.11.4.tar.xz";
347347 };
348348 };
349349 xdg-desktop-portal-kde = {
350− version = "5.11.3";
350+ version = "5.11.4";
351351 src = fetchurl {
352− url = "${mirror}/stable/plasma/5.11.3/xdg-desktop-portal-kde-5.11.3.tar.xz";
353− sha256 = "01jcya7xyrn3d99raqvbzfwllihzdpyizx757f87pgg43dmbggwm";
354− name = "xdg-desktop-portal-kde-5.11.3.tar.xz";
352+ url = "${mirror}/stable/plasma/5.11.4/xdg-desktop-portal-kde-5.11.4.tar.xz";
353+ sha256 = "162gc6bfsxlj5rc4yz94sv41p75gf2kgayxa534gw3zhvry1jb52";
354+ name = "xdg-desktop-portal-kde-5.11.4.tar.xz";
355355 };
356356 };
357357}
pkgs/development/compilers/ghc/7.10.2.nix+1−1
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
3434 sha256 = "1x8m4rp2v7ydnrz6z9g8x7z3x3d3pxhv2pixy7i7hkbqbdsp7kal";
3535 };
3636
37− buildInputs = [ ghc perl libxml2 libxslt docbook_xsl docbook_xml_dtd_45 docbook_xml_dtd_42 hscolour ];
37+ buildInputs = [ ghc perl libxml2 libxslt docbook_xsl docbook_xml_dtd_45 docbook_xml_dtd_42 (stdenv.lib.getBin hscolour) ];
3838
3939 patches = [ ./relocation.patch ];
4040
pkgs/development/compilers/ghc/7.10.3.nix+1−1
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
3030 ./relocation.patch
3131 ];
3232
33− buildInputs = [ ghc perl libxml2 libxslt docbook_xsl docbook_xml_dtd_45 docbook_xml_dtd_42 hscolour ];
33+ buildInputs = [ ghc perl libxml2 libxslt docbook_xsl docbook_xml_dtd_45 docbook_xml_dtd_42 (stdenv.lib.getBin hscolour) ];
3434
3535 enableParallelBuilding = true;
3636
pkgs/development/compilers/ghc/8.0.2.nix+1−1
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 ++ stdenv.lib.optional stdenv.isLinux ./ghc-no-madv-free.patch
2424 ++ stdenv.lib.optional stdenv.isDarwin ./ghc-8.0.2-no-cpp-warnings.patch;
2525
26− buildInputs = [ ghc perl hscolour sphinx ];
26+ buildInputs = [ ghc perl (stdenv.lib.getBin hscolour) sphinx ];
2727
2828 enableParallelBuilding = true;
2929
pkgs/development/compilers/ghc/8.2.1.nix+1−1
@@ -10,7 +10,7 @@
1010let
1111 inherit (bootPkgs) ghc;
1212 version = "8.2.1";
13−
13+ preReleaseName = "ghc-8.2.1";
1414 commonBuildInputs = [ alex autoconf automake ghc happy hscolour perl python3 sphinx ];
1515 commonPreConfigure = ''
1616 sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
pkgs/development/compilers/ghc/head.nix+1−1
@@ -11,7 +11,7 @@
1111let
1212 inherit (bootPkgs) ghc;
1313
14− commonBuildInputs = [ ghc perl autoconf automake happy alex python3 ];
14+ commonBuildInputs = [ ghc perl autoconf automake (stdenv.lib.getBin happy) (stdenv.lib.getBin alex) python3 ];
1515
1616 rev = "14457cf6a50f708eecece8f286f08687791d51f7";
1717
pkgs/development/compilers/ghcjs/base.nix+1−1
@@ -113,7 +113,7 @@ in mkDerivation (rec {
113113 lens optparse-applicative parallel safe shelly split
114114 stringsearch syb system-fileio system-filepath tar terminfo text-binary
115115 unordered-containers vector wl-pprint-text yaml
116− alex happy git gnumake autoconf automake libtool patch gmp
116+ (stdenv.lib.getBin alex) (stdenv.lib.getBin happy) git gnumake autoconf automake libtool patch gmp
117117 base16-bytestring cryptohash executable-path haddock-api
118118 transformers-compat QuickCheck haddock hspec xhtml
119119 regex-posix libiconv
pkgs/development/compilers/halvm/2.4.0.nix+2−2
@@ -20,9 +20,9 @@ stdenv.mkDerivation rec {
2020 sed -ie 's|ld |${targetPackages.stdenv.cc.bintools}/bin/ld |g' src/scripts/ldkernel.in
2121 '';
2222 configureFlags = stdenv.lib.optional (!enableIntegerSimple) [ "--enable-gmp" ];
23− propagatedNativeBuildInputs = [ alex happy ];
23+ propagatedNativeBuildInputs = [ (stdenv.lib.getBin alex) (stdenv.lib.getBin happy) ];
2424 buildInputs =
25− let haskellPkgs = [ alex happy bootPkgs.hscolour bootPkgs.cabal-install bootPkgs.haddock bootPkgs.hpc
25+ let haskellPkgs = [ (stdenv.lib.getBin alex) (stdenv.lib.getBin happy) (stdenv.lib.getBin bootPkgs.hscolour) bootPkgs.cabal-install bootPkgs.haddock bootPkgs.hpc
2626 ]; in [ bootPkgs.ghc
2727 automake perl git targetPackages.stdenv.cc.bintools
2828 autoconf xen zlib ncurses.dev
pkgs/development/compilers/neko/default.nix+1−1
@@ -50,6 +50,7 @@ stdenv.mkDerivation rec {
5050 bin/neko bin/test.n
5151 '';
5252
53+ doCheck = true;
5354 dontStrip = true;
5455
5556 meta = with stdenv.lib; {
@@ -60,4 +61,3 @@ stdenv.mkDerivation rec {
6061 platforms = platforms.linux ++ platforms.darwin;
6162 };
6263}
63−
pkgs/development/compilers/purescript/psc-package/default.nix+2−2
@@ -4,13 +4,13 @@ with lib;
44
55mkDerivation rec {
66 pname = "psc-package";
7− version = "0.2.4";
7+ version = "0.2.5";
88
99 src = fetchFromGitHub {
1010 owner = "purescript";
1111 repo = pname;
1212 rev = "v${version}";
13− sha256 = "0m1vcxa5zs4sqnnwgmxkhw1isdlmirp12yimn5345vwfvlxkc8kp";
13+ sha256 = "15g0l8g8l6m5x4f73w68r9iav091x12b3wjxh0rx3ggnj093g6j1";
1414 };
1515
1616 isLibrary = false;
pkgs/development/haskell-modules/configuration-common.nix+1
@@ -897,6 +897,7 @@ self: super: {
897897 # Don't install internal mkReadme tool.
898898 hastache = overrideCabal super.hastache (drv: {
899899 doCheck = false;
900+ enableSeparateBinOutput = false;
900901 postInstall = "rm $out/bin/mkReadme && rmdir $out/bin";
901902 });
902903
pkgs/development/haskell-modules/configuration-nix.nix+52−1
@@ -217,7 +217,10 @@ self: super: builtins.intersectAttrs super {
217217
218218 # wxc supports wxGTX >= 3.0, but our current default version points to 2.8.
219219 # http://hydra.cryp.to/build/1331287/log/raw
220− wxc = (addBuildDepend super.wxc self.split).override { wxGTK = pkgs.wxGTK30; };
220+ wxc = (overrideCabal super.wxc (drv: {
221+ buildDepends = (drv.buildDepends or []) ++ [self.split];
222+ postInstall = "cp -v dist/build/libwxc.so.0.92.3.0 $lib/lib/libwxc.so";
223+ })).override { wxGTK = pkgs.wxGTK30; };
221224 wxcore = super.wxcore.override { wxGTK = pkgs.wxGTK30; };
222225
223226 # Test suite wants to connect to $DISPLAY.
@@ -507,4 +510,52 @@ self: super: builtins.intersectAttrs super {
507510 # Break cyclic reference that results in an infinite recursion.
508511 partial-semigroup = dontCheck super.partial-semigroup;
509512
513+ # Alex has some weird files in /usr/share that create a cyclic ref with
514+ # its bin dir.
515+ alex = hasNoBinOutput super.alex;
516+
517+ # Disable separate bin outputs for these specific packages that break with it.
518+ H = hasNoBinOutput super.H;
519+ cryptol = hasNoBinOutput super.cryptol;
520+ hscolour = hasNoBinOutput super.hscolour;
521+ sproxy = hasNoBinOutput super.sproxy;
522+ sproxy2 = hasNoBinOutput super.sproxy2;
523+ sproxy-web = hasNoBinOutput super.sproxy-web;
524+ juandelacosa = hasNoBinOutput super.juandelacosa;
525+ mywatch = hasNoBinOutput super.mywatch;
526+ sugarhaskell = hasNoBinOutput super.sugarhaskell;
527+ zerobin = hasNoBinOutput super.zerobin;
528+
529+ git-annex = overrideCabal super.git-annex (drv: {
530+ enableSeparateBinOutput = false;
531+ enableSeparateEtcOutput = false;
532+ });
533+
534+ # Has extra data files which are referred to from the binary output,
535+ # creating a store reference cycle. Putting data in separate output
536+ # solves the problem.
537+ happy = overrideCabal super.happy (drv: { enableSeparateDataOutput = true; });
538+
539+ # Override a number of packages with specific references to $out in their
540+ # derivations
541+ stack = overrideCabal super.stack (drv: {
542+ postInstall = ''
543+ exe=$bin/bin/stack
544+ mkdir -p $bin/share/bash-completion/completions
545+ $exe --bash-completion-script $exe >$bin/share/bash-completion/completions/stack
546+ '';
547+ });
548+ Agda = overrideCabal super.Agda (drv: {
549+ postInstall = ''
550+ files=("$out/share/"*"-ghc-"*"/Agda-"*"/lib/prim/Agda/"{Primitive.agda,Builtin"/"*.agda})
551+ for f in "''${files[@]}" ; do
552+ $bin/bin/agda $f
553+ done
554+ for f in "''${files[@]}" ; do
555+ $bin/bin/agda -c --no-main $f
556+ done
557+ $bin/bin/agda-mode compile
558+ '';
559+ });
560+
510561}
pkgs/development/haskell-modules/generic-builder.nix+100−22
@@ -56,6 +56,10 @@ let isCross = (ghc.cross or null) != null; in
5656, hardeningDisable ? lib.optional (ghc.isHaLVM or false) "all"
5757, enableSeparateDataOutput ? false
5858, enableSeparateDocOutput ? doHaddock
59+, enableSeparateBinOutput ? isExecutable
60+, outputsToInstall ? []
61+, enableSeparateLibOutput ? true
62+, enableSeparateEtcOutput ? (stdenv.lib.versionOlder "7.7" ghc.version)
5963} @ args:
6064
6165assert editedCabalFile != null -> revision != null;
@@ -79,9 +83,6 @@ let
7983 then "package-db"
8084 else "package-conf";
8185
82− # the target dir for haddock documentation
83− docdir = docoutput: docoutput + "/share/doc";
84−
8586 newCabalFileUrl = "http://hackage.haskell.org/package/${pname}-${version}/revision/${revision}.cabal";
8687 newCabalFile = fetchurl {
8788 url = newCabalFileUrl;
@@ -95,6 +96,13 @@ let
9596 '';
9697
9798 hasActiveLibrary = isLibrary && (enableStaticLibraries || enableSharedLibraries || enableLibraryProfiling);
99+ hasLibOutput = enableSeparateLibOutput && hasActiveLibrary;
100+ libDir = if hasLibOutput then "$lib/lib/${ghc.name}" else "$out/lib/${ghc.name}";
101+ binDir = if enableSeparateBinOutput then "$bin/bin" else "$out/bin";
102+ libexecDir = if enableSeparateBinOutput then "$libexec/bin" else "$out/libexec";
103+ etcDir = if enableSeparateEtcOutput then "$etc/etc" else "$out/etc";
104+ docDir = if enableSeparateDocOutput then "$doc/share/doc" else "$out/share/doc";
105+ dataDir = if enableSeparateDataOutput then "$data/share/${ghc.name}" else "$out/share/${ghc.name}";
98106
99107 # We cannot enable -j<n> parallelism for libraries because GHC is far more
100108 # likely to generate a non-determistic library ID in that case. Further
@@ -113,12 +121,20 @@ let
113121 stdenv.lib.optionalString isCross (" " + stdenv.lib.concatStringsSep " " crossCabalFlags);
114122
115123 defaultConfigureFlags = [
116− "--verbose" "--prefix=$out" "--libdir=\\$prefix/lib/\\$compiler" "--libsubdir=\\$pkgid"
117− (optionalString enableSeparateDataOutput "--datadir=$data/share/${ghc.name}")
118− (optionalString enableSeparateDocOutput "--docdir=${docdir "$doc"}")
124+ "--verbose" "--prefix=$out"
125+ # Binary directory has to be $bin/bin instead of just $bin: this
126+ # is so that the package is added to the PATH when it's used as a
127+ # build input. Sadly mkDerivation won't add inputs that don't have
128+ # bin subdirectory.
129+ "--bindir=${binDir}"
130+ "--libdir=${libDir}" "--libsubdir=\\$pkgid"
131+ "--libexecdir=${libexecDir}"
132+ (optionalString (enableSeparateEtcOutput) "--sysconfdir=${etcDir}") # Old versions of cabal don't support this flag.
133+ "--datadir=${dataDir}"
134+ "--docdir=${docDir}"
119135 "--with-gcc=$CC" # Clang won't work without that extra information.
120136 "--package-db=$packageConfDir"
121− (optionalString (enableSharedExecutables && stdenv.isLinux) "--ghc-option=-optl=-Wl,-rpath=$out/lib/${ghc.name}/${pname}-${version}")
137+ (optionalString (enableSharedExecutables && stdenv.isLinux) "--ghc-option=-optl=-Wl,-rpath=${libDir}/${pname}-${version}")
122138 (optionalString (enableSharedExecutables && stdenv.isDarwin) "--ghc-option=-optl=-Wl,-headerpad_max_install_names")
123139 (optionalString enableParallelBuilding "--ghc-option=-j$NIX_BUILD_CORES")
124140 (optionalString useCpphs "--with-cpphs=${cpphs}/bin/cpphs --ghc-options=-cpp --ghc-options=-pgmP${cpphs}/bin/cpphs --ghc-options=-optP--cpp")
@@ -152,8 +168,11 @@ let
152168 allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
153169 optionals doCheck testPkgconfigDepends ++ optionals doBenchmark benchmarkPkgconfigDepends;
154170
155− nativeBuildInputs = optional (allPkgconfigDepends != []) pkgconfig ++
156− buildTools ++ libraryToolDepends ++ executableToolDepends ++ [ removeReferencesTo ];
171+ nativeBuildInputs = map stdenv.lib.getBin
172+ ( optional (allPkgconfigDepends != []) pkgconfig
173+ ++ buildTools ++ libraryToolDepends ++ executableToolDepends
174+ ++ [ removeReferencesTo ]
175+ );
157176 propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
158177 otherBuildInputs = setupHaskellDepends ++ extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++
159178 optionals (allPkgconfigDepends != []) allPkgconfigDepends ++
@@ -182,7 +201,15 @@ assert allPkgconfigDepends != [] -> pkgconfig != null;
182201stdenv.mkDerivation ({
183202 name = "${pname}-${version}";
184203
185− outputs = if (args ? outputs) then args.outputs else ([ "out" ] ++ (optional enableSeparateDataOutput "data") ++ (optional enableSeparateDocOutput "doc"));
204+ outputs = if (args ? outputs) then args.outputs else
205+ ( (optional enableSeparateBinOutput "bin")
206+ ++ (optional enableSeparateBinOutput "libexec")
207+ ++ [ "out" ]
208+ ++ (optional enableSeparateDataOutput "data")
209+ ++ (optional enableSeparateDocOutput "doc")
210+ ++ (optional enableSeparateEtcOutput "etc")
211+ ++ (optional hasLibOutput "lib")
212+ );
186213 setOutputFlags = false;
187214
188215 pos = builtins.unsafeGetAttrPos "pname" args;
@@ -206,7 +233,7 @@ stdenv.mkDerivation ({
206233
207234 postPatch = optionalString jailbreak ''
208235 echo "Run jailbreak-cabal to lift version restrictions on build inputs."
209− ${jailbreak-cabal}/bin/jailbreak-cabal ${pname}.cabal
236+ ${stdenv.lib.getBin jailbreak-cabal}/bin/jailbreak-cabal ${pname}.cabal
210237 '' + postPatch;
211238
212239 setupCompilerEnvironmentPhase = ''
@@ -214,7 +241,7 @@ stdenv.mkDerivation ({
214241
215242 echo "Build with ${ghc}."
216243 export PATH="${ghc}/bin:$PATH"
217− ${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${hscolour}/bin:$PATH"}
244+ ${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${stdenv.lib.getBin hscolour}/bin:$PATH"}
218245
219246 packageConfDir="$TMPDIR/package.conf.d"
220247 mkdir -p $packageConfDir
@@ -241,7 +268,7 @@ stdenv.mkDerivation ({
241268 #
242269 # Create a local directory with symlinks of the *.dylib (macOS shared
243270 # libraries) from all the dependencies.
244− local dynamicLinksDir="$out/lib/links"
271+ local dynamicLinksDir="${libDir}/links"
245272 mkdir -p $dynamicLinksDir
246273 for d in $(grep dynamic-library-dirs "$packageConfDir/"*|awk '{print $2}'); do
247274 ln -s "$d/"*.dylib $dynamicLinksDir
@@ -313,7 +340,7 @@ stdenv.mkDerivation ({
313340
314341 ${if !hasActiveLibrary then "${setupCommand} install" else ''
315342 ${setupCommand} copy
316− local packageConfDir="$out/lib/${ghc.name}/package.conf.d"
343+ local packageConfDir="${libDir}/package.conf.d"
317344 local packageConfFile="$packageConfDir/${pname}-${version}.conf"
318345 mkdir -p "$packageConfDir"
319346 ${setupCommand} register --gen-pkg-config=$packageConfFile
@@ -321,7 +348,7 @@ stdenv.mkDerivation ({
321348 mv $packageConfFile $packageConfDir/$pkgId.conf
322349 ''}
323350 ${optionalString isGhcjs ''
324− for exeDir in "$out/bin/"*.jsexe; do
351+ for exeDir in "${binDir}/"*.jsexe; do
325352 exe="''${exeDir%.jsexe}"
326353 printWords '#!${nodejs}/bin/node' > "$exe"
327354 cat "$exeDir/all.js" >> "$exe"
@@ -330,18 +357,68 @@ stdenv.mkDerivation ({
330357 ''}
331358 ${optionalString doCoverage "mkdir -p $out/share && cp -r dist/hpc $out/share"}
332359 ${optionalString (enableSharedExecutables && isExecutable && !isGhcjs && stdenv.isDarwin && stdenv.lib.versionOlder ghc.version "7.10") ''
333− for exe in "$out/bin/"* ; do
334− install_name_tool -add_rpath "$out/lib/ghc-${ghc.version}/${pname}-${version}" "$exe"
360+ for exe in "${binDir}/"* ; do
361+ install_name_tool -add_rpath "${libDir}/${pname}-${version}" "$exe"
335362 done
336363 ''}
337364
338365 ${optionalString enableSeparateDocOutput ''
339− for x in ${docdir "$doc"}/html/src/*.html; do
340− remove-references-to -t $out $x
366+ # Remove references back to $out but also back to $lib if we have
367+ # docs. $lib is needed as it stores path to haddock interfaces in the
368+ # conf file which creates a cycle if docs refer back to library
369+ # path.
370+ mkdir -p ${docDir}
371+
372+ for x in ${docDir}/html/src/*.html; do
373+ remove-references-to -t $out -t ${libDir} -t ${binDir} ${optionalString enableSeparateDataOutput "-t $data"} $x
341374 done
342− mkdir -p $doc
343375 ''}
344− ${optionalString enableSeparateDataOutput "mkdir -p $data"}
376+
377+ ${optionalString hasLibOutput ''
378+ # Even if we don't have binary output for the package, things like
379+ # Paths files will embed paths to bin/libexec directories in themselves
380+ # which results in .lib <-> $out cyclic store reference. We
381+ # therefore patch out the paths from separate library if we don't have
382+ # separate bin output too.
383+ #
384+ # If we _do_ have separate bin and lib outputs, we may still be in
385+ # trouble in case of shared executables: executable contains path to
386+ # .lib, .lib contains path (through Paths) to .bin and we have a
387+ # cycle.
388+ #
389+ # Lastly we have to deal with references from .lib back into
390+ # $out/share if we're not splitting out data directory.
391+ #
392+ # It may happen that we have hasLibOutput set but the library
393+ # directory was not created: this happens in the case that library
394+ # section is not exposing any modules. See "fail" package for an
395+ # example where no modules are exposed for GHC >= 8.0.
396+ if [ -d ${libDir} ]; then
397+ find ${libDir} -type f -exec \
398+ remove-references-to -t ${binDir} -t ${libexecDir} "{}" \;
399+ fi
400+ ''}
401+
402+ ${optionalString (hasLibOutput && ! enableSeparateDocOutput) ''
403+ # If we don't have separate docs, we have to patch out the ref to
404+ # docs in package conf. This will likely break Haddock
405+ # cross-package links but is necessary to break store cycle…
406+ find ${libDir}/ -type f -name '*.conf' -exec \
407+ remove-references-to -t ${docDir} "{}" \;
408+ ''}
409+
410+ ${optionalString (hasLibOutput && ! enableSeparateDataOutput) ''
411+ # Just like for doc output path in $out potentially landing in
412+ # *.conf, we have to also remove the data directory so that it
413+ # doesn't appear under data-dir field creating a cycle.
414+ find ${libDir}/ -type f -exec echo Removing ${dataDir} refs from "{}" \;
415+ find ${libDir}/ -type f -exec \
416+ remove-references-to -t ${dataDir} "{}" \;
417+ ''}
418+
419+ ${optionalString enableSeparateDataOutput "mkdir -p ${dataDir}"}
420+ ${optionalString enableSeparateBinOutput "mkdir -p ${binDir} ${libexecDir}"}
421+ ${optionalString enableSeparateEtcOutput "mkdir -p ${etcDir}"}
345422
346423 runHook postInstall
347424 '';
@@ -358,7 +435,7 @@ stdenv.mkDerivation ({
358435 # the directory containing the haddock documentation.
359436 # `null' if no haddock documentation was built.
360437 # TODO: fetch the self from the fixpoint instead
361− haddockDir = self: if doHaddock then "${docdir self.doc}/html" else null;
438+ haddockDir = self: if doHaddock then "${docDir}/html" else null;
362439
363440 env = stdenv.mkDerivation {
364441 name = "interactive-${pname}-${version}-environment";
@@ -386,6 +463,7 @@ stdenv.mkDerivation ({
386463 // optionalAttrs (description != "") { inherit description; }
387464 // optionalAttrs (maintainers != []) { inherit maintainers; }
388465 // optionalAttrs (hydraPlatforms != platforms) { inherit hydraPlatforms; }
466+ // optionalAttrs (outputsToInstall != []) { inherit outputsToInstall; }
389467 ;
390468
391469}
pkgs/development/haskell-modules/lib.nix+4
@@ -147,4 +147,8 @@ rec {
147147 overrideSrc = drv: { src, version ? drv.version }:
148148 overrideCabal drv (_: { inherit src version; editedCabalFile = null; });
149149
150+ hasNoBinOutput = drv: overrideCabal drv (drv: { enableSeparateBinOutput = false; });
151+
152+ installOutputs = drv: outputs: overrideCabal drv
153+ (drv: { outputsToInstall = outputs; });
150154}
pkgs/development/haskell-modules/make-package-set.nix+1
@@ -44,6 +44,7 @@ let
4444 isLibrary = false;
4545 doHaddock = false;
4646 hyperlinkSource = false; # Avoid depending on hscolour for this build.
47+ enableSeparateEtcOutput = false; # The flag to support this is missing in old versions of cabal.
4748 postFixup = "rm -rf $out/lib $out/share $out/nix-support";
4849 });
4950 cpphs = overrideCabal (self.cpphs.overrideScope (self: super: {
pkgs/development/haskell-modules/with-packages-wrapper.nix+1−1
@@ -43,7 +43,7 @@ let
4343 libDir = if isHaLVM then "$out/lib/HaLVM-${ghc.version}" else "$out/lib/${ghcCommand}-${ghc.version}";
4444 docDir = "$out/share/doc/ghc/html";
4545 packageCfgDir = "${libDir}/package.conf.d";
46− paths = lib.filter (x: x ? isHaskellLibrary) (lib.closePropagation packages);
46+ paths = map lib.getLib (lib.filter (x: x ? isHaskellLibrary) (lib.closePropagation packages));
4747 hasLibraries = lib.any (x: x.isHaskellLibrary) paths;
4848 # CLang is needed on Darwin for -fllvm to work:
4949 # https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/code-generators.html
pkgs/development/ocaml-modules/mlgmpidl/default.nix+6−5
@@ -1,19 +1,20 @@
1−{ stdenv, fetchFromGitHub, ocaml, findlib, camlidl, gmp, mpfr }:
1+{ stdenv, fetchFromGitHub, perl, ocaml, findlib, camlidl, gmp, mpfr }:
22
33stdenv.mkDerivation rec {
44 name = "ocaml${ocaml.version}-mlgmpidl-${version}";
5− version = "1.2.4";
5+ version = "1.2.6";
66 src = fetchFromGitHub {
77 owner = "nberth";
88 repo = "mlgmpidl";
99 rev = version;
10− sha256 = "09f9rk2bavhb7cdwjpibjf8bcjk59z85ac9dr8nvks1s842dp65s";
10+ sha256 = "1lq3yy10v3rvlchbl5kl75l9f8frgj6g9f1n14kj5qlxm5xsrvks";
1111 };
1212
13− buildInputs = [ gmp mpfr ocaml findlib camlidl ];
13+ buildInputs = [ perl gmp mpfr ocaml findlib camlidl ];
1414
1515 configurePhase = ''
16− cp Makefile.config.model Makefile.config
16+ echo CAML_PREFIX = ${ocaml} > Makefile.config
17+ cat Makefile.config.model >> Makefile.config
1718 sed -i Makefile.config \
1819 -e 's|^MLGMPIDL_PREFIX.*$|MLGMPIDL_PREFIX = $out|' \
1920 -e 's|^GMP_PREFIX.*$|GMP_PREFIX = ${gmp.dev}|' \
pkgs/development/ocaml-modules/ptmap/default.nix+2−2
@@ -1,13 +1,13 @@
11{ stdenv, fetchzip, ocaml, findlib, obuild }:
22
3−let version = "2.0.2"; in
3+let version = "2.0.3"; in
44
55stdenv.mkDerivation {
66 name = "ocaml${ocaml.version}-ptmap-${version}";
77
88 src = fetchzip {
99 url = "https://github.com/backtracking/ptmap/archive/v${version}.tar.gz";
10− sha256 = "093qax4lhpv1vcgwqh5b3pmy769hv5d8pqj1kjynh1z1xibv2qxc";
10+ sha256 = "19xykhqk7q25r1pj8rpfj53j2r9ls8mxi1w5m2wqshrf20gf078h";
1111 };
1212
1313 buildInputs = [ ocaml findlib obuild ];
pkgs/development/tools/analysis/frama-c/default.nix+3−3
@@ -9,12 +9,12 @@ in
99
1010stdenv.mkDerivation rec {
1111 name = "frama-c-${version}";
12− version = "20170501";
13− slang = "Phosphorus";
12+ version = "20171101";
13+ slang = "Sulfur";
1414
1515 src = fetchurl {
1616 url = "http://frama-c.com/download/frama-c-${slang}-${version}.tar.gz";
17− sha256 = "16bccacms3n4rfpsxdxpdf24bk0hwrnzdpa2pbr6s847li73hkv1";
17+ sha256 = "1vwjfqmm1r36gkybsy3a7m89q5zicf4rnz5vlsn9imnpjpl9gjw1";
1818 };
1919
2020 why2 = fetchurl {
pkgs/development/tools/continuous-integration/jenkins/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "jenkins-${version}";
5− version = "2.92";
5+ version = "2.93";
66
77 src = fetchurl {
88 url = "http://mirrors.jenkins-ci.org/war/${version}/jenkins.war";
9− sha256 = "085h2hfhizli7bpvi06vi6jsav1cn86jw8l6vdpqq4ddx2hrhn39";
9+ sha256 = "1wk62lmll0abbgl3drmrf5kg8hya3glkwx7h0gfhcna3vjb95ll1";
1010 };
1111
1212 buildCommand = ''
pkgs/development/tools/gox/default.nix+15−8
@@ -1,18 +1,25 @@
1−{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
22
33buildGoPackage rec {
44 name = "gox-${version}";
5− version = "20140904-${stdenv.lib.strings.substring 0 7 rev}";
6− rev = "e8e6fd4fe12510cc46893dff18c5188a6a6dc549";
5+ version = "0.4.0";
76
8−
97 goPackagePath = "github.com/mitchellh/gox";
108
11− src = fetchgit {
12− inherit rev;
13− url = "https://github.com/mitchellh/gox";
14− sha256 = "14jb2vgfr6dv7zlw8i3ilmp125m5l28ljv41a66c9b8gijhm48k1";
9+ src = fetchFromGitHub {
10+ owner = "mitchellh";
11+ repo = "gox";
12+ rev = "v${version}";
13+ sha256 = "1q4fdkw904mrmh1q5z8pfd3r0gcn5dm776kldqawddy93iiwnp8r";
1514 };
1615
1716 goDeps = ./deps.nix;
17+
18+ meta = with stdenv.lib; {
19+ homepage = https://github.com/mitchellh/gox;
20+ description = "A dead simple, no frills Go cross compile tool";
21+ platforms = platforms.all;
22+ license = licenses.mpl20;
23+ };
24+
1825}
pkgs/development/tools/gox/deps.nix+2−2
@@ -4,8 +4,8 @@
44 fetch = {
55 type = "git";
66 url = "https://github.com/mitchellh/iochan";
7− rev = "b584a329b193e206025682ae6c10cdbe03b0cd77";
8− sha256 = "1fcwdhfci41ibpng2j4c1bqfng578cwzb3c00yw1lnbwwhaq9r6b";
7+ rev = "87b45ffd0e9581375c491fef3d32130bb15c5bd7";
8+ sha256 = "1435kdcx3j1xgr6mm5c7w7hjx015jb20yfqlkp93q143hspf02fx";
99 };
1010 }
1111]
pkgs/development/tools/misc/intel-gpu-tools/default.nix+1−1
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 homepage = https://01.org/linuxgraphics/;
2424 description = "Tools for development and testing of the Intel DRM driver";
2525 license = licenses.mit;
26− platforms = platforms.unix;
26+ platforms = [ "x86_64-linux" "i686-linux" ];
2727 maintainers = with maintainers; [ pSub ];
2828 };
2929}
pkgs/development/tools/misc/premake/5.nix+4−4
@@ -3,14 +3,14 @@
33with stdenv.lib;
44
55stdenv.mkDerivation rec {
6− name = "premake-${version}";
7− version = "5.0.0pre.alpha.11";
6+ name = "premake5-${version}";
7+ version = "5.0.0-alpha12";
88
99 src = fetchFromGitHub {
1010 owner = "premake";
1111 repo = "premake-core";
12− rev = "5dfb0238bc309df04819dd430def621ce854678d";
13− sha256 = "0k9xbqrnbwj0hnmdgcrwn70py1kiqvr10l42aw42xnlmdyg1sgsc";
12+ rev = "v${version}";
13+ sha256 = "1h3hr96pdz94njn4bg02ldcz0k5j1x017d8svc7fdyvl2b77nqzf";
1414 };
1515
1616 buildInputs = optional stdenv.isDarwin [ CoreServices ];
pkgs/games/dwarf-fortress/default.nix−1
@@ -12,7 +12,6 @@ let
1212 };
1313
1414 soundSense = callPackage ./soundsense.nix { };
15− stoneSense = callPackage ./stonesense.nix { };
1615
1716 dwarf-fortress-unfuck = callPackage ./unfuck.nix { };
1817
pkgs/games/dwarf-fortress/stonesense.nixdeleted−15
@@ -1,15 +0,0 @@
1−{ stdenv, fetchFromGitHub, cmake }:
2−
3−stdenv.mkDerivation rec {
4− name = "stonesense";
5− src = fetchFromGitHub {
6− owner = "DFHack";
7− repo = "stonesense";
8− rev = "be793a080e66db1ff79ac284070632ec1a896708";
9− sha256 = "1kibqblxp16z75zm48kk59w483933rkg4w339f28fcrbpg4sn92s";
10− };
11−
12− nativeBuildInputs = [ cmake ];
13−
14− cmakeFlags = [ "-DDFHACK_BUILD_ARCH=64" ];
15−}
pkgs/os-specific/linux/ioport/default.nix+1−1
@@ -11,7 +11,7 @@ stdenv.mkDerivation {
1111 description = "Direct access to I/O ports from the command line";
1212 homepage = http://people.redhat.com/rjones/ioport/;
1313 license = licenses.gpl2Plus;
14− platforms = platforms.linux;
14+ platforms = [ "x86_64-linux" "i686-linux" ];
1515 maintainers = [ maintainers.cleverca22 ];
1616 };
1717}
pkgs/os-specific/linux/kernel/generic.nix+2−5
@@ -118,7 +118,7 @@ let
118118 };
119119
120120 kernel = buildLinux {
121− inherit version modDirVersion src kernelPatches stdenv;
121+ inherit version modDirVersion src kernelPatches stdenv extraMeta;
122122
123123 configfile = configfile.nativeDrv or configfile;
124124
@@ -131,10 +131,7 @@ let
131131
132132 passthru = {
133133 features = kernelFeatures;
134−
135− meta = kernel.meta // extraMeta;
136−
137− passthru = kernel.passthru // (removeAttrs passthru [ "passthru" "meta" ]);
134+ passthru = kernel.passthru // (removeAttrs passthru [ "passthru" ]);
138135 };
139136
140137 nativeDrv = lib.addPassthru kernel.nativeDrv passthru;
pkgs/os-specific/linux/kernel/linux-4.13.nix+6
@@ -4,6 +4,12 @@ import ./generic.nix (args // rec {
44 version = "4.13.16";
55 extraMeta.branch = "4.13";
66
7+ # TODO: perhaps try being more concrete (ideally CVE numbers).
8+ extraMeta.knownVulnerabilities = [
9+ "ALSA: usb-audio: Fix potential out-of-bound access at parsing SU"
10+ "eCryptfs: use after free in ecryptfs_release_messaging()"
11+ ];
12+
713 src = fetchurl {
814 url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
915 sha256 = "0cf7prqzl1ajbgl98w0symdyn0k5wl5xaf1l5ldgy6l083yg69dh";
pkgs/os-specific/linux/kernel/linux-testing.nix+3−3
@@ -1,13 +1,13 @@
11{ stdenv, hostPlatform, fetchurl, perl, buildLinux, libelf, utillinux, ... } @ args:
22
33import ./generic.nix (args // rec {
4− version = "4.15-rc1";
5− modDirVersion = "4.15.0-rc1";
4+ version = "4.15-rc2";
5+ modDirVersion = "4.15.0-rc2";
66 extraMeta.branch = "4.15";
77
88 src = fetchurl {
99 url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
10− sha256 = "1l7c132qb5qjd80hga03ivssfq65brqyd95sb4rd065dqrixp20n";
10+ sha256 = "1i79gkjipj1q7w0d4zjz2hj43r12jicgznxk0wz0la2d8a4d3lcq";
1111 };
1212
1313 # Should the testing kernels ever be built on Hydra?
pkgs/os-specific/linux/kernel/manual-config.nix+3−1
@@ -39,6 +39,8 @@ in {
3939 config ? stdenv.lib.optionalAttrs allowImportFromDerivation (readConfig configfile),
4040 # Cross-compiling config
4141 crossConfig ? if allowImportFromDerivation then (readConfig crossConfigfile) else config,
42+ # Use defaultMeta // extraMeta
43+ extraMeta ? {},
4244 # Whether to utilize the controversial import-from-derivation feature to parse the config
4345 allowImportFromDerivation ? false
4446}:
@@ -228,7 +230,7 @@ let
228230 maintainers.thoughtpolice
229231 ];
230232 platforms = platforms.linux;
231− };
233+ } // extraMeta;
232234 };
233235in
234236
pkgs/servers/sql/postgresql/pgtap/default.nix+2−2
@@ -2,13 +2,13 @@
22
33stdenv.mkDerivation rec {
44 name = "pgtap-${version}";
5− version = "0.97.0";
5+ version = "0.98.0";
66
77 src = fetchFromGitHub {
88 owner = "theory";
99 repo = "pgtap";
1010 rev = "v${version}";
11− sha256 = "1vzc8pxzi0rbywmrvx7i5awngsvzcz75i4jl9bk2vqr223chax6f";
11+ sha256 = "17r3b409k05pbypmwdwgm1fl669jc6a1391szyxizx784k44a369";
1212 };
1313
1414 nativeBuildInputs = [ postgresql perl perlPackages.TAPParserSourceHandlerpgTAP which ];
pkgs/servers/x11/xorg/overrides.nix+1
@@ -450,6 +450,7 @@ in
450450 };
451451 nativeBuildInputs = [ pkgconfig ];
452452 buildInputs = [ dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
453+ postPatch = "sed '1i#include <malloc.h>' -i include/os.h";
453454 meta.platforms = stdenv.lib.platforms.unix;
454455 } else throw "unsupported xorg abiCompat: ${args.abiCompat}";
455456
pkgs/shells/nix-bash-completions/default.nix+2−2
@@ -1,14 +1,14 @@
11{ stdenv, fetchFromGitHub }:
22
33stdenv.mkDerivation rec {
4− version = "0.5";
4+ version = "0.6";
55 name = "nix-bash-completions-${version}";
66
77 src = fetchFromGitHub {
88 owner = "hedning";
99 repo = "nix-bash-completions";
1010 rev = "v${version}";
11− sha256 = "095dbbqssaxf0y85xw73gajif6lzy2aja4scg3plplng3k9zbldz";
11+ sha256 = "093rla6wwx51fclh7xm8qlssx70hj0fj23r59qalaaxf7fdzg2hf";
1212 };
1313
1414 installPhase = ''
pkgs/shells/nix-zsh-completions/default.nix+2−2
@@ -1,7 +1,7 @@
11{ stdenv, fetchFromGitHub }:
22
33let
4− version = "0.3.5";
4+ version = "0.3.6";
55in
66
77stdenv.mkDerivation rec {
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111 owner = "spwhitt";
1212 repo = "nix-zsh-completions";
1313 rev = "${version}";
14− sha256 = "1fp565qbzbbwj99rq3c28gpq8gcnlxb2glj05382zimas1dfd0y9";
14+ sha256 = "193yd0c3j62lhy7n7y9l0viwdiymvrfbqcgki69dm2414n3mlh05";
1515 };
1616
1717 installPhase = ''
pkgs/shells/zsh-prezto/default.nix+5−21
@@ -1,28 +1,13 @@
11{ stdenv, fetchpatch, fetchgit, fetchFromGitHub }:
22
3−let
4− # https://github.com/spwhitt/nix-zsh-completions/pull/2
5− nix-zsh-completions = fetchFromGitHub {
6− owner = "garbas";
7− repo = "nix-zsh-completions";
8− rev = "9b7d216ec095ccee541ebfa5f04249aa2964d054";
9− sha256 = "1pvmfcqdvdi3nc1jm72f54mwf06yrmlq31pqw6b5fczawcz02jrz";
10− };
11−in stdenv.mkDerivation rec {
12− rev = "4f19700919c8ebbaf75755fc0d03716d13183f49";
13− name = "zsh-prezto-2015-03-03_rev${builtins.substring 0 7 rev}";
3+stdenv.mkDerivation rec {
4+ name = "zsh-prezto-2017-12-03";
145 src = fetchgit {
156 url = "https://github.com/sorin-ionescu/prezto";
16− inherit rev;
17− sha256 = "17mql9mb7zbf8q1nvnci60yrmz5bl9q964i8dv4shz8b42861cdg";
7+ rev = "029414581e54f5b63156f81acd0d377e8eb78883";
8+ sha256 = "0crrj2nq0wcv5in8qimnkca2an760aqald13vq09s5kbwwc9rs1f";
189 fetchSubmodules = true;
1910 };
20− patches = [
21− (fetchpatch {
22− url = "https://github.com/sorin-ionescu/prezto/pull/1028.patch";
23− sha256 = "0yrj72s1hiaq13374xa82hxdig4s0kvqjn9apkmw0h7kzggxjfn3";
24− })
25− ];
2611 buildPhase = ''
2712 sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zpreztorc|/etc/zpreztorc|g" init.zsh
2813 sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/|g" init.zsh
@@ -32,8 +17,7 @@ in stdenv.mkDerivation rec {
3217 sed -i -e "s|\''${0:h}/cache.zsh|\''${ZDOTDIR:\-\$HOME}/.zfasd_cache|g" modules/fasd/init.zsh
3318 '';
3419 installPhase = ''
35− mkdir -p $out/modules/nix
36− cp ${nix-zsh-completions}/* $out/modules/nix -R
20+ mkdir -p $out
3721 cp ./* $out/ -R
3822 '';
3923 meta = with stdenv.lib; {
pkgs/tools/misc/fwup/default.nix+2−2
@@ -4,13 +4,13 @@
44
55stdenv.mkDerivation rec {
66 name = "fwup-${version}";
7− version = "0.16.1";
7+ version = "0.18.1";
88
99 src = fetchFromGitHub {
1010 owner = "fhunleth";
1111 repo = "fwup";
1212 rev = "v${version}";
13− sha256 = "1hphgpwxzdbfswzxbx0jm7lma1xkkwxvm8ll3jp2ljmimqzzb7jf";
13+ sha256 = "0qdld8jy1rkpfzbfhnssr58q1gciln3pw9m6fj0jarfgja4gj31l";
1414 };
1515
1616 doCheck = true;
pkgs/tools/misc/memtest86+/default.nix+1−1
@@ -56,6 +56,6 @@ stdenv.mkDerivation rec {
5656 homepage = http://www.memtest.org/;
5757 description = "A tool to detect memory errors";
5858 license = stdenv.lib.licenses.gpl2;
59− platforms = stdenv.lib.platforms.linux;
59+ platforms = [ "x86_64-linux" "i686-linux" ];
6060 };
6161}
pkgs/tools/misc/otfcc/default.nix+10−11
@@ -1,25 +1,24 @@
1−{ stdenv, fetchurl, premake5, hostPlatform }:
1+{ stdenv, fetchFromGitHub, premake5, ninja, hostPlatform }:
22
33stdenv.mkDerivation rec {
44 name = "otfcc-${version}";
55 version = "0.8.6";
66
7− src = fetchurl {
8− url = "https://github.com/caryll/otfcc/archive/v${version}.tar.gz";
9− sha256 = "0kap52bzrn21fmph8j2pc71f80f38ak1p2fcczzmrh0hb1r9c8dd";
7+ src = fetchFromGitHub {
8+ owner = "caryll";
9+ repo = "otfcc";
10+ rev = "v${version}";
11+ sha256 = "0yy9awffxxs0cdlf0akld73ndnwmylxvplac4k6j7641m3vk1g8p";
1012 };
1113
12− nativeBuildInputs = [ premake5 ];
14+ nativeBuildInputs = [ premake5 ninja ];
1315
1416 configurePhase = ''
15− premake5 gmake
17+ premake5 ninja
1618 '';
1719
18− preBuild = "cd build/gmake";
19−
20− makeFlags = ''config=release_${if hostPlatform.isi686 then "x86" else "x64"}'';
21−
22− postBuild = "cd ../..";
20+ ninjaFlags = let x = if hostPlatform.isi686 then "x86" else "x64"; in
21+ [ "-C" "build/ninja" "otfccdump_release_${x}" "otfccbuild_release_${x}" ];
2322
2423 installPhase = ''
2524 mkdir -p $out/bin
pkgs/tools/misc/youtube-dl/default.nix+2−2
@@ -15,11 +15,11 @@ with stdenv.lib;
1515buildPythonApplication rec {
1616
1717 name = "youtube-dl-${version}";
18− version = "2017.11.06";
18+ version = "2017.12.02";
1919
2020 src = fetchurl {
2121 url = "https://yt-dl.org/downloads/${version}/${name}.tar.gz";
22− sha256 = "1djq3sf16il6y7n175gv7xwdz2s9lvsvzs38k95cj579l4k0433d";
22+ sha256 = "1qf5gz00cnxzab3cwh9kxzhs08mddm0nwvb7j5z5xxzhi6wkslha";
2323 };
2424
2525 nativeBuildInputs = [ makeWrapper ];
pkgs/tools/security/hashcat/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "hashcat-${version}";
5− version = "4.0.0";
5+ version = "4.0.1";
66
77 src = fetchurl {
88 url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
9− sha256 = "0l1vq4h1gfxc2yclxkvy6gfz6sii2vyzip8pw6ifq930y8dvi34y";
9+ sha256 = "1pafjwibppylfgs3rck6724dhd3vwwndb9lkc29gd64pxd3l98kz";
1010 };
1111
1212 nativeBuildInputs = [ makeWrapper ];
pkgs/tools/security/tor/default.nix+2−2
@@ -3,11 +3,11 @@
33}:
44
55stdenv.mkDerivation rec {
6− name = "tor-0.3.1.8";
6+ name = "tor-0.3.1.9";
77
88 src = fetchurl {
99 url = "https://dist.torproject.org/${name}.tar.gz";
10− sha256 = "18dinpj03d036rashlad16lv7j2hba8gg742z07l37x5c242kxkx";
10+ sha256 = "09ixizsr635qyshvrn1m5asjkaz4fm8dx80lc3ajyy0fi7vh86vf";
1111 };
1212
1313 outputs = [ "out" "geoip" ];
pkgs/tools/security/vault/default.nix+3−2
@@ -9,13 +9,13 @@ let
99 };
1010in stdenv.mkDerivation rec {
1111 name = "vault-${version}";
12− version = "0.8.3";
12+ version = "0.9.0";
1313
1414 src = fetchFromGitHub {
1515 owner = "hashicorp";
1616 repo = "vault";
1717 rev = "v${version}";
18− sha256 = "1dcmqbcdkj42614am2invb6wf8v29z4sp4d354a4d83rwhyb0qly";
18+ sha256 = "1c3jaajf3wpjczbncvdpyy5vaa62gb9287bj2zi2khvqzvii36b0";
1919 };
2020
2121 nativeBuildInputs = [ go gox removeReferencesTo ];
@@ -23,6 +23,7 @@ in stdenv.mkDerivation rec {
2323 buildPhase = ''
2424 patchShebangs ./
2525 substituteInPlace scripts/build.sh --replace 'git rev-parse HEAD' 'echo ${src.rev}'
26+ sed -i s/'^GIT_DIRTY=.*'/'GIT_DIRTY="+NixOS"'/ scripts/build.sh
2627
2728 mkdir -p src/github.com/hashicorp
2829 ln -s $(pwd) src/github.com/hashicorp/vault
pkgs/tools/security/vulnix/default.nix+2−2
@@ -3,11 +3,11 @@
33pythonPackages.buildPythonApplication rec {
44 name = "${pname}-${version}";
55 pname = "vulnix";
6− version = "1.3.4";
6+ version = "1.4.0";
77
88 src = pythonPackages.fetchPypi {
99 inherit pname version;
10− sha256 = "1js1i86pgkkqc9yzp1rck7rmaz79klv4048r9z7v56fam0a6sg05";
10+ sha256 = "19kfqxlrigrgwn74x06m70ar2fhyhic5kfmdanjwjcbaxblha3l8";
1111 };
1212
1313 buildInputs = with pythonPackages; [ flake8 pytest pytestcov ];
pkgs/tools/system/localtime/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, go, systemd, polkit, fetchFromGitHub, m4 }:
2+
3+stdenv.mkDerivation {
4+ name = "localtime-2017-11-07";
5+
6+ src = fetchFromGitHub {
7+ owner = "Stebalien";
8+ repo = "localtime";
9+ rev = "2e7b4317c723406bd75b2a1d640219ab9f8090ce";
10+ sha256 = "04fyna8p7q7skzx9fzmncd6gx7x5pwa9jh8a84hpljlvj0kldfs8";
11+ };
12+
13+ buildInputs = [ go systemd polkit m4 ];
14+
15+ makeFlags = [ "PREFIX=$(out)" ];
16+
17+ meta = {
18+ description = "A daemon for keeping the system timezone up-to-date based on the current location";
19+ homepage = https://github.com/Stebalien/localtime;
20+ platforms = stdenv.lib.platforms.linux;
21+ };
22+}
pkgs/tools/system/rowhammer-test/default.nix+1−1
@@ -24,6 +24,6 @@ stdenv.mkDerivation {
2424 homepage = https://github.com/google/rowhammer-test;
2525 license = licenses.asl20;
2626 maintainers = [ maintainers.viric ];
27− platforms = platforms.unix;
27+ platforms = [ "x86_64-linux" "i686-linux" ];
2828 };
2929}
pkgs/tools/text/highlight/default.nix+2−2
@@ -4,13 +4,13 @@ with stdenv.lib;
44
55stdenv.mkDerivation rec {
66 name = "highlight-${version}";
7− version = "3.40";
7+ version = "3.41";
88
99 src = fetchFromGitHub {
1010 owner = "andre-simon";
1111 repo = "highlight";
1212 rev = "${version}";
13− sha256 = "0bkywhz4y10qcajimdha1ck5mvn7fsrv3yn8nd6rqbva39gbfmfd";
13+ sha256 = "163ghkyv3v6v200pskajlsz6sbq3hi31qx7abjcbwc0dajqfngvj";
1414 };
1515
1616 nativeBuildInputs = [ pkgconfig ] ++ optional stdenv.isDarwin gcc ;
pkgs/top-level/all-packages.nix+10−6
@@ -27,7 +27,9 @@ with pkgs;
2727 # Used by wine, firefox with debugging version of Flash, ...
2828 pkgsi686Linux = forceSystem "i686-linux" "i386";
2929
30− callPackage_i686 = pkgsi686Linux.callPackage;
30+ callPackage_i686 = if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux"
31+ then pkgsi686Linux.callPackage
32+ else throw "callPackage_i686 not supported on system '${stdenv.system}'";
3133
3234 # A stdenv capable of building 32-bit binaries. On x86_64-linux,
3335 # it uses GCC compiled with multilib support; on i686-linux, it's
@@ -828,10 +830,10 @@ with pkgs;
828830 enableSharedExecutables = false;
829831 executableToolDepends = [ makeWrapper ];
830832 postInstall = ''
831− exe=$out/libexec/${drv.pname}-${drv.version}/${drv.pname}
832− install -D $out/bin/${drv.pname} $exe
833− rm -rf $out/{bin,lib,share}
834− makeWrapper $exe $out/bin/${drv.pname} \
833+ exe=$libexec/bin/${drv.pname}-${drv.version}/${drv.pname}
834+ install -D $bin/bin/${drv.pname} $exe
835+ rm -rf $bin/bin $out/lib $out/share
836+ makeWrapper $exe $bin/bin/${drv.pname} \
835837 --prefix PATH ":" "${nix}/bin" \
836838 --prefix PATH ":" "${nix-prefetch-scripts}/bin"
837839 mkdir -p $out/share/{bash-completion/completions,zsh/vendor-completions,fish/completions}
@@ -845,7 +847,7 @@ with pkgs;
845847 executableToolDepends = [ makeWrapper ];
846848 postInstall = ''
847849 wrapProgram $out/bin/stack2nix \
848− --prefix PATH ":" "${git}/bin:${cabal2nix}/bin:${cabal-install}/bin:${stack}/bin"
850+ ${lib.makeBinPath [ git cabal2nix cabal-install stack ]}
849851 '';
850852 });
851853
@@ -3208,6 +3210,8 @@ with pkgs;
32083210
32093211 limesurvey = callPackage ../servers/limesurvey { };
32103212
3213+ localtime = callPackage ../tools/system/localtime { };
3214+
32113215 logcheck = callPackage ../tools/system/logcheck {
32123216 inherit (perlPackages) mimeConstruct;
32133217 };
pkgs/top-level/python-packages.nix+3−6
@@ -9406,18 +9406,15 @@ in {
94069406
94079407 hetzner = buildPythonPackage rec {
94089408 name = "hetzner-${version}";
9409− version = "0.7.5";
9409+ version = "0.8.0";
94109410
94119411 src = pkgs.fetchFromGitHub {
94129412 repo = "hetzner";
9413− owner = "RedMoonStudios";
9413+ owner = "aszlig";
94149414 rev = "v${version}";
9415− sha256 = "1fw7i1z4a39i1ljd9qd4f5p1p3a4257jfglkdpw90xjwl7fdpq42";
9415+ sha256 = "04q2q2w2qkhfly8rfjg2h5pnh42gs18l6cmipqc37yf7qvkw3nd0";
94169416 };
94179417
9418− # not there yet, but coming soon.
9419− doCheck = false;
9420−
94219418 meta = {
94229419 homepage = "https://github.com/RedMoonStudios/hetzner";
94239420 description = "High-level Python API for accessing the Hetzner robot";