git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #5614 from brendanlong/syncthing-0.10.18

syncthing: Update to 0.10.18 and remove workarounds needed for 0.10.17.

commit5c01c1dae0c2eaaaeb8712ed370dbf67b4701121 authorDomen Kožar <domen@dev.si> dateWed 7 Jan 2015, 12:46 (12 years ago) parente7d4d39ca88aec
2 files changed+2−23
pkgs/applications/networking/syncthing/default.nix+2−9 pkgs/applications/networking/syncthing/fix-go-1.4-range.patch−14
pkgs/applications/networking/syncthing/default.nix+2−9
@@ -2,29 +2,22 @@
22
33stdenv.mkDerivation rec {
44 name = "syncthing-${version}";
5− version = "0.10.17";
5+ version = "0.10.18";
66
77 src = fetchgit {
88 url = "git://github.com/syncthing/syncthing.git";
99 rev = "refs/tags/v${version}";
10− sha256 = "1hv0va7234rgyahn8xvpyj1bsbmn7ifsyqm7b3ghhybinclghp1w";
10+ sha256 = "145i7rrqjly6h07b5kf0zwlxy8gh0jlpq6pwfgjmf0kilrvncla1";
1111 };
1212
1313 buildInputs = [ go ];
1414
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−
2115 buildPhase = ''
2216 mkdir -p "./dependencies/src/github.com/syncthing/syncthing"
2317 cp -r internal "./dependencies/src/github.com/syncthing/syncthing"
2418
2519 export GOPATH="`pwd`/Godeps/_workspace:`pwd`/dependencies"
2620
27− # Tests can't be run in parallel because TestPredictableRandom relies on global state
2821 go run build.go test
2922
3023 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−--