git.iko.soy/typeable/nixpkgs
on master help sign in
syncthing: Update to 0.10.18 and remove workarounds needed for 0.10.17.
ca88aecBrendan Long
pkgs/applications/networking/syncthing/default.nix+2−9
@@ -2,29 +2,22 @@
2
2
3stdenv.mkDerivation rec {
3stdenv.mkDerivation rec {
4 name = "syncthing-${version}";
4 name = "syncthing-${version}";
5− version = "0.10.17";
5+ version = "0.10.18";
6
6
7 src = fetchgit {
7 src = fetchgit {
8 url = "git://github.com/syncthing/syncthing.git";
8 url = "git://github.com/syncthing/syncthing.git";
9 rev = "refs/tags/v${version}";
9 rev = "refs/tags/v${version}";
10− sha256 = "1hv0va7234rgyahn8xvpyj1bsbmn7ifsyqm7b3ghhybinclghp1w";
10+ sha256 = "145i7rrqjly6h07b5kf0zwlxy8gh0jlpq6pwfgjmf0kilrvncla1";
11 };
11 };
12
12
13 buildInputs = [ go ];
13 buildInputs = [ go ];
14
14
15− patches = [
16− # Remove when Go 1.4 is available in Nix, or when this pull request is released:
17− # https://github.com/syncthing/syncthing/pull/1183
18− ./fix-go-1.4-range.patch
19− ];
20−
21 buildPhase = ''
15 buildPhase = ''
22 mkdir -p "./dependencies/src/github.com/syncthing/syncthing"
16 mkdir -p "./dependencies/src/github.com/syncthing/syncthing"
23 cp -r internal "./dependencies/src/github.com/syncthing/syncthing"
17 cp -r internal "./dependencies/src/github.com/syncthing/syncthing"
24
18
25 export GOPATH="`pwd`/Godeps/_workspace:`pwd`/dependencies"
19 export GOPATH="`pwd`/Godeps/_workspace:`pwd`/dependencies"
26
20
27− # Tests can't be run in parallel because TestPredictableRandom relies on global state
28 go run build.go test
21 go run build.go test
29
22
30 mkdir ./bin
23 mkdir ./bin
pkgs/applications/networking/syncthing/fix-go-1.4-range.patchdeleted−14
@@ -1,14 +0,0 @@
1−diff --git a/internal/model/queue_test.go b/internal/model/queue_test.go
2−index 3745664..96aaf38 100644
3−--- a/internal/model/queue_test.go
4−+++ b/internal/model/queue_test.go
5−@@ -191,7 +191,7 @@ func BenchmarkJobQueuePushPopDone10k(b *testing.B) {
6− for _, f := range files {
7− q.Push(f.Name)
8− }
9−- for range files {
10−+ for _ = range files {
11− n, _ := q.Pop()
12− q.Done(n)
13− }
14−--