File tree 31 files changed +726
-477
lines changed
version-management/tortoisehg
python-modules/tensorflow
31 files changed +726
-477
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,9 @@ meta-attributes</title>
200
200
meta.platforms = stdenv.lib.platforms.linux;
201
201
</programlisting >
202
202
203
- Attribute Set <varname >stdenv.lib.platforms</varname > in
204
- <link xlink : href =" https://github.com/NixOS/nixpkgs/blob/master/lib/platforms.nix" >
205
- <filename >nixpkgs/lib/platforms.nix</filename ></link > defines various common
206
- lists of platforms types.
207
- </para ></listitem >
203
+ Attribute Set <varname >stdenv.lib.platforms</varname > defines
204
+ <link xlink : href =" https://github.com/NixOS/nixpkgs/blob/master/lib/systems/doubles.nix" >
205
+ various common lists</link > of platforms types.</para ></listitem >
208
206
</varlistentry >
209
207
210
208
<varlistentry >
Original file line number Diff line number Diff line change @@ -90,6 +90,14 @@ following incompatible changes:</para>
90
90
That means that old configuration is not overwritten by default when update to the znc options are made.
91
91
</para >
92
92
</listitem >
93
+ <listitem >
94
+ <para >
95
+ The option <option >services.xserver.desktopManager.default</option > is now <literal >none</literal > by default.
96
+ An assertion failure is thrown if WM's and DM's default are <literal >none</literal >.
97
+ To explicitly run a plain X session without and DM or WM, the newly introduced option <option >services.xserver.plainX</option >
98
+ must be set to true.
99
+ </para >
100
+ </listitem >
93
101
</itemizedlist >
94
102
95
103
</section >
Original file line number Diff line number Diff line change 87
87
88
88
default = mkOption {
89
89
type = types . str ;
90
- default = "" ;
91
- example = "none " ;
90
+ default = "none " ;
91
+ example = "plasma5 " ;
92
92
description = "Default desktop manager loaded if none have been chosen." ;
93
93
apply = defaultDM :
94
94
if defaultDM == "" && cfg . session . list != [ ] then
Original file line number Diff line number Diff line change 161
161
'' ;
162
162
} ;
163
163
164
+ plainX = mkOption {
165
+ type = types . bool ;
166
+ default = false ;
167
+ description = ''
168
+ Whether the X11 session can be plain (without DM/WM) and
169
+ the Xsession script will be used as fallback or not.
170
+ '' ;
171
+ } ;
172
+
164
173
autorun = mkOption {
165
174
type = types . bool ;
166
175
default = true ;
552
561
+ "${ toString ( length primaryHeads ) } heads set to primary: "
553
562
+ concatMapStringsSep ", " ( x : x . output ) primaryHeads ;
554
563
} )
564
+ { assertion = cfg . desktopManager . default == "none" && cfg . windowManager . default == "none" -> cfg . plainX ;
565
+ message = "Either the desktop manager or the window manager shouldn't be `none`! To explicitly allow this, you can also set `services.xserver.plainX` to `true`." ;
566
+ }
555
567
] ;
556
568
557
569
environment . etc =
Original file line number Diff line number Diff line change @@ -270,6 +270,10 @@ in rec {
270
270
tests . plasma5 = callTest tests/plasma5.nix { } ;
271
271
tests . keymap = callSubTests tests/keymap.nix { } ;
272
272
tests . initrdNetwork = callTest tests/initrd-network.nix { } ;
273
+ tests . kafka_0_9 = callTest tests/kafka_0_9.nix { } ;
274
+ tests . kafka_0_10 = callTest tests/kafka_0_10.nix { } ;
275
+ tests . kafka_0_11 = callTest tests/kafka_0_11.nix { } ;
276
+ tests . kafka_1_0 = callTest tests/kafka_1_0.nix { } ;
273
277
tests . kernel-copperhead = callTest tests/kernel-copperhead.nix { } ;
274
278
tests . kernel-latest = callTest tests/kernel-latest.nix { } ;
275
279
tests . kernel-lts = callTest tests/kernel-lts.nix { } ;
@@ -330,7 +334,7 @@ in rec {
330
334
tests . wordpress = callTest tests/wordpress.nix { } ;
331
335
tests . xfce = callTest tests/xfce.nix { } ;
332
336
tests . xmonad = callTest tests/xmonad.nix { } ;
333
-
337
+ tests . zookeeper = callTest tests/zookeeper.nix { } ;
334
338
335
339
/* Build a bunch of typical closures so that Hydra can keep track of
336
340
the evolution of closure sizes. */
Original file line number Diff line number Diff line change
1
+ import ./make-test.nix ( { pkgs , lib , ... } :
2
+ let
3
+ kafkaPackage = pkgs . apacheKafka_0_10 ;
4
+ in {
5
+ name = "kafka_0_10" ;
6
+ meta = with pkgs . stdenv . lib . maintainers ; {
7
+ maintainers = [ nequissimus ] ;
8
+ } ;
9
+
10
+ nodes = {
11
+ zookeeper1 = { config , ... } : {
12
+ services . zookeeper = {
13
+ enable = true ;
14
+ } ;
15
+
16
+ networking . firewall . allowedTCPPorts = [ 2181 ] ;
17
+ } ;
18
+ kafka = { config , ... } : {
19
+ services . apache-kafka = {
20
+ enable = true ;
21
+ extraProperties = ''
22
+ offsets.topic.replication.factor = 1
23
+ '' ;
24
+ package = kafkaPackage ;
25
+ zookeeper = "zookeeper1:2181" ;
26
+ } ;
27
+
28
+ networking . firewall . allowedTCPPorts = [ 9092 ] ;
29
+ virtualisation . memorySize = 2048 ;
30
+ } ;
31
+ } ;
32
+
33
+ testScript = ''
34
+ startAll;
35
+
36
+ $zookeeper1->waitForUnit("zookeeper");
37
+ $zookeeper1->waitForUnit("network.target");
38
+ $zookeeper1->waitForOpenPort(2181);
39
+
40
+ $kafka->waitForUnit("apache-kafka");
41
+ $kafka->waitForUnit("network.target");
42
+ $kafka->waitForOpenPort(9092);
43
+
44
+ $kafka->waitUntilSucceeds("${ kafkaPackage } /bin/kafka-topics.sh --create --zookeeper zookeeper1:2181 --partitions 1 --replication-factor 1 --topic testtopic");
45
+ $kafka->mustSucceed("echo 'test 1' | ${ kafkaPackage } /bin/kafka-console-producer.sh --broker-list localhost:9092 --topic testtopic");
46
+ $kafka->mustSucceed("${ kafkaPackage } /bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic testtopic --from-beginning --max-messages 1 | grep 'test 1'");
47
+ '' ;
48
+ } )
Original file line number Diff line number Diff line change
1
+ import ./make-test.nix ( { pkgs , lib , ... } :
2
+ let
3
+ kafkaPackage = pkgs . apacheKafka_0_11 ;
4
+ in {
5
+ name = "kafka_0_11" ;
6
+ meta = with pkgs . stdenv . lib . maintainers ; {
7
+ maintainers = [ nequissimus ] ;
8
+ } ;
9
+
10
+ nodes = {
11
+ zookeeper1 = { config , ... } : {
12
+ services . zookeeper = {
13
+ enable = true ;
14
+ } ;
15
+
16
+ networking . firewall . allowedTCPPorts = [ 2181 ] ;
17
+ } ;
18
+ kafka = { config , ... } : {
19
+ services . apache-kafka = {
20
+ enable = true ;
21
+ extraProperties = ''
22
+ offsets.topic.replication.factor = 1
23
+ '' ;
24
+ package = kafkaPackage ;
25
+ zookeeper = "zookeeper1:2181" ;
26
+ } ;
27
+
28
+ networking . firewall . allowedTCPPorts = [ 9092 ] ;
29
+ virtualisation . memorySize = 2048 ;
30
+ } ;
31
+ } ;
32
+
33
+ testScript = ''
34
+ startAll;
35
+
36
+ $zookeeper1->waitForUnit("zookeeper");
37
+ $zookeeper1->waitForUnit("network.target");
38
+ $zookeeper1->waitForOpenPort(2181);
39
+
40
+ $kafka->waitForUnit("apache-kafka");
41
+ $kafka->waitForUnit("network.target");
42
+ $kafka->waitForOpenPort(9092);
43
+
44
+ $kafka->waitUntilSucceeds("${ kafkaPackage } /bin/kafka-topics.sh --create --zookeeper zookeeper1:2181 --partitions 1 --replication-factor 1 --topic testtopic");
45
+ $kafka->mustSucceed("echo 'test 1' | ${ kafkaPackage } /bin/kafka-console-producer.sh --broker-list localhost:9092 --topic testtopic");
46
+ $kafka->mustSucceed("${ kafkaPackage } /bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic testtopic --from-beginning --max-messages 1 | grep 'test 1'");
47
+ '' ;
48
+ } )
Original file line number Diff line number Diff line change
1
+ import ./make-test.nix ( { pkgs , lib , ... } :
2
+ let
3
+ kafkaPackage = pkgs . apacheKafka_0_9 ;
4
+ in {
5
+ name = "kafka_0_9" ;
6
+ meta = with pkgs . stdenv . lib . maintainers ; {
7
+ maintainers = [ nequissimus ] ;
8
+ } ;
9
+
10
+ nodes = {
11
+ zookeeper1 = { config , ... } : {
12
+ services . zookeeper = {
13
+ enable = true ;
14
+ } ;
15
+
16
+ networking . firewall . allowedTCPPorts = [ 2181 ] ;
17
+ } ;
18
+ kafka = { config , ... } : {
19
+ services . apache-kafka = {
20
+ enable = true ;
21
+ extraProperties = ''
22
+ offsets.topic.replication.factor = 1
23
+ '' ;
24
+ package = kafkaPackage ;
25
+ zookeeper = "zookeeper1:2181" ;
26
+ } ;
27
+
28
+ networking . firewall . allowedTCPPorts = [ 9092 ] ;
29
+ virtualisation . memorySize = 2048 ;
30
+ } ;
31
+ } ;
32
+
33
+ testScript = ''
34
+ startAll;
35
+
36
+ $zookeeper1->waitForUnit("zookeeper");
37
+ $zookeeper1->waitForUnit("network.target");
38
+ $zookeeper1->waitForOpenPort(2181);
39
+
40
+ $kafka->waitForUnit("apache-kafka");
41
+ $kafka->waitForUnit("network.target");
42
+ $kafka->waitForOpenPort(9092);
43
+
44
+ $kafka->waitUntilSucceeds("${ kafkaPackage } /bin/kafka-topics.sh --create --zookeeper zookeeper1:2181 --partitions 1 --replication-factor 1 --topic testtopic");
45
+ $kafka->mustSucceed("echo 'test 1' | ${ kafkaPackage } /bin/kafka-console-producer.sh --broker-list localhost:9092 --topic testtopic");
46
+ $kafka->mustSucceed("${ kafkaPackage } /bin/kafka-console-consumer.sh --zookeeper zookeeper1:2181 --topic testtopic --from-beginning --max-messages 1 | grep 'test 1'");
47
+ '' ;
48
+ } )
Original file line number Diff line number Diff line change
1
+ import ./make-test.nix ( { pkgs , lib , ... } :
2
+ let
3
+ kafkaPackage = pkgs . apacheKafka_1_0 ;
4
+ in {
5
+ name = "kafka_1_0" ;
6
+ meta = with pkgs . stdenv . lib . maintainers ; {
7
+ maintainers = [ nequissimus ] ;
8
+ } ;
9
+
10
+ nodes = {
11
+ zookeeper1 = { config , ... } : {
12
+ services . zookeeper = {
13
+ enable = true ;
14
+ } ;
15
+
16
+ networking . firewall . allowedTCPPorts = [ 2181 ] ;
17
+ } ;
18
+ kafka = { config , ... } : {
19
+ services . apache-kafka = {
20
+ enable = true ;
21
+ extraProperties = ''
22
+ offsets.topic.replication.factor = 1
23
+ '' ;
24
+ package = kafkaPackage ;
25
+ zookeeper = "zookeeper1:2181" ;
26
+ } ;
27
+
28
+ networking . firewall . allowedTCPPorts = [ 9092 ] ;
29
+ virtualisation . memorySize = 2048 ;
30
+ } ;
31
+ } ;
32
+
33
+ testScript = ''
34
+ startAll;
35
+
36
+ $zookeeper1->waitForUnit("zookeeper");
37
+ $zookeeper1->waitForUnit("network.target");
38
+ $zookeeper1->waitForOpenPort(2181);
39
+
40
+ $kafka->waitForUnit("apache-kafka");
41
+ $kafka->waitForUnit("network.target");
42
+ $kafka->waitForOpenPort(9092);
43
+
44
+ $kafka->waitUntilSucceeds("${ kafkaPackage } /bin/kafka-topics.sh --create --zookeeper zookeeper1:2181 --partitions 1 --replication-factor 1 --topic testtopic");
45
+ $kafka->mustSucceed("echo 'test 1' | ${ kafkaPackage } /bin/kafka-console-producer.sh --broker-list localhost:9092 --topic testtopic");
46
+ $kafka->mustSucceed("${ kafkaPackage } /bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic testtopic --from-beginning --max-messages 1 | grep 'test 1'");
47
+ '' ;
48
+ } )
Original file line number Diff line number Diff line change
1
+ import ./make-test.nix ( { pkgs , ...} : {
2
+ name = "zookeeper" ;
3
+ meta = with pkgs . stdenv . lib . maintainers ; {
4
+ maintainers = [ nequissimus ] ;
5
+ } ;
6
+
7
+ nodes = {
8
+ server = { pkgs , config , ... } : {
9
+ services . zookeeper = {
10
+ enable = true ;
11
+ } ;
12
+
13
+ networking . firewall . allowedTCPPorts = [ 2181 ] ;
14
+ } ;
15
+ } ;
16
+
17
+ testScript = ''
18
+ startAll;
19
+
20
+ $server->waitForUnit("zookeeper");
21
+ $server->waitForUnit("network.target");
22
+ $server->waitForOpenPort(2181);
23
+
24
+ $server->waitUntilSucceeds("${ pkgs . zookeeper } /bin/zkCli.sh -server localhost:2181 create /foo bar");
25
+ $server->waitUntilSucceeds("${ pkgs . zookeeper } /bin/zkCli.sh -server localhost:2181 set /foo hello");
26
+ $server->waitUntilSucceeds("${ pkgs . zookeeper } /bin/zkCli.sh -server localhost:2181 get /foo | grep hello");
27
+ '' ;
28
+ } )
Original file line number Diff line number Diff line change 32
32
build_dir=$PWD
33
33
cd $TMPDIR
34
34
35
- local_path=$(basename ${ store_path } .zip | sed -e 's/^[a-z0-9]*-//' )
35
+ local_path=$(basename ${ url } .zip)
36
36
37
37
cp -r ${ store_path } $local_path
38
38
chmod u+rwX -R $local_path
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
9
9
10
10
src = fetchFromGitHub {
11
11
owner = "symless" ;
12
- repo = "synergy" ;
12
+ repo = "synergy-core " ;
13
13
rev = "v${ version } -stable" ;
14
14
sha256 = "0ksgr9hkf09h54572p7k7b9zkfhcdb2g2d5x7ixxn028y8i3jyp3" ;
15
15
} ;
Original file line number Diff line number Diff line change 4
4
5
5
stdenv . mkDerivation rec {
6
6
name = "tilix-${ version } " ;
7
- version = "1.6.4 " ;
7
+ version = "1.7.1 " ;
8
8
9
9
src = fetchFromGitHub {
10
10
owner = "gnunn1" ;
11
11
repo = "tilix" ;
12
12
rev = "${ version } " ;
13
- sha256 = "1vqi68jlbbaky1569kd4lr6p02zsiv7v2rfb8j1pzwj7gydblaac " ;
13
+ sha256 = "0x0bnb26hjvxmvvd7c9k8fw97gcm3z5ssr6r8x90xbyyw6h58hhh " ;
14
14
} ;
15
15
16
16
nativeBuildInputs = [
You can’t perform that action at this time.
0 commit comments