tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
wsdd: 0.7.1 -> 0.8
Izorkin
2 years ago
95dd498d
e9f2343e
+2
-21
2 changed files
expand all
collapse all
unified
split
pkgs
servers
wsdd
default.nix
increase_timeout.patch
+2
-8
pkgs/servers/wsdd/default.nix
···
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "wsdd";
5
5
-
version = "0.7.1";
5
5
+
version = "0.8";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "christgau";
9
9
repo = pname;
10
10
rev = "v${version}";
11
11
-
hash = "sha256-xfZVGi3OxuRI+Zh6L3Ru4J4j5BB1EAN3fllRCVA/c5o=";
11
11
+
hash = "sha256-T8/XlQpx4CtNy8LuLwOQBG9muFe9pp5583tDaCT4ReI=";
12
12
};
13
13
14
14
outputs = [ "out" "man" ];
···
16
16
nativeBuildInputs = [ installShellFiles makeWrapper ];
17
17
18
18
buildInputs = [ python3 ];
19
19
-
20
20
-
patches = [
21
21
-
# Increase timeout to socket urlopen
22
22
-
# See https://github.com/christgau/wsdd/issues/80#issuecomment-76848906
23
23
-
./increase_timeout.patch
24
24
-
];
25
19
26
20
installPhase = ''
27
21
install -Dm0555 src/wsdd.py $out/bin/wsdd
-13
pkgs/servers/wsdd/increase_timeout.patch
···
1
1
-
diff --git a/src/wsdd.py b/src/wsdd.py
2
2
-
index 88a7a2a..360e4f7 100755
3
3
-
--- a/src/wsdd.py
4
4
-
+++ b/src/wsdd.py
5
5
-
@@ -699,7 +699,7 @@ class WSDClient(WSDUDPMessageHandler):
6
6
-
request.add_header('Host', host)
7
7
-
8
8
-
try:
9
9
-
- with urllib.request.urlopen(request, None, 2.0) as stream:
10
10
-
+ with urllib.request.urlopen(request, None, 5.0) as stream:
11
11
-
self.handle_metadata(stream.read(), endpoint, xaddr)
12
12
-
except urllib.error.URLError as e:
13
13
-
logger.warning('could not fetch metadata from: {} {}'.format(url, e))