syncthing: Update to 0.10.18 and remove workarounds needed for 0.10.17.
This commit is contained in:
parent
f8bd5bb401
commit
ca88aec8ed
|
@ -2,29 +2,22 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "syncthing-${version}";
|
name = "syncthing-${version}";
|
||||||
version = "0.10.17";
|
version = "0.10.18";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "git://github.com/syncthing/syncthing.git";
|
url = "git://github.com/syncthing/syncthing.git";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "1hv0va7234rgyahn8xvpyj1bsbmn7ifsyqm7b3ghhybinclghp1w";
|
sha256 = "145i7rrqjly6h07b5kf0zwlxy8gh0jlpq6pwfgjmf0kilrvncla1";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ go ];
|
buildInputs = [ go ];
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Remove when Go 1.4 is available in Nix, or when this pull request is released:
|
|
||||||
# https://github.com/syncthing/syncthing/pull/1183
|
|
||||||
./fix-go-1.4-range.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
mkdir -p "./dependencies/src/github.com/syncthing/syncthing"
|
mkdir -p "./dependencies/src/github.com/syncthing/syncthing"
|
||||||
cp -r internal "./dependencies/src/github.com/syncthing/syncthing"
|
cp -r internal "./dependencies/src/github.com/syncthing/syncthing"
|
||||||
|
|
||||||
export GOPATH="`pwd`/Godeps/_workspace:`pwd`/dependencies"
|
export GOPATH="`pwd`/Godeps/_workspace:`pwd`/dependencies"
|
||||||
|
|
||||||
# Tests can't be run in parallel because TestPredictableRandom relies on global state
|
|
||||||
go run build.go test
|
go run build.go test
|
||||||
|
|
||||||
mkdir ./bin
|
mkdir ./bin
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
diff --git a/internal/model/queue_test.go b/internal/model/queue_test.go
|
|
||||||
index 3745664..96aaf38 100644
|
|
||||||
--- a/internal/model/queue_test.go
|
|
||||||
+++ b/internal/model/queue_test.go
|
|
||||||
@@ -191,7 +191,7 @@ func BenchmarkJobQueuePushPopDone10k(b *testing.B) {
|
|
||||||
for _, f := range files {
|
|
||||||
q.Push(f.Name)
|
|
||||||
}
|
|
||||||
- for range files {
|
|
||||||
+ for _ = range files {
|
|
||||||
n, _ := q.Pop()
|
|
||||||
q.Done(n)
|
|
||||||
}
|
|
||||||
--
|
|
Loading…
Reference in New Issue