tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
amule: update and fix build on gcc47
Vladimír Čunát
13 years ago
7cb4d92b
90fc42c2
+26
-3
2 changed files
expand all
collapse all
unified
split
pkgs
tools
networking
p2p
amule
default.nix
gcc47.patch
+5
-3
pkgs/tools/networking/p2p/amule/default.nix
···
12
12
edf = enabled: flag: if enabled then "--enable-" + flag else "--disable-" + flag;
13
13
in
14
14
mkDerivation rec {
15
15
-
name = "aMule-2.2.6";
15
15
+
name = "aMule-2.3.1";
16
16
17
17
src = fetchurl {
18
18
-
url = "mirror://sourceforge/amule/${name}.tar.bz2";
19
19
-
sha256 = "08l1931hcg1ia8yvhgx70hx64mknjnfn6l78m0ja44w13mgjpqvc";
18
18
+
url = "mirror://sourceforge/amule/${name}.tar.xz";
19
19
+
sha256 = "0hvpx3c005nvxsfand5bwfxxiq3mv0mpykajfm2lkygjh1rw2383";
20
20
};
21
21
22
22
buildInputs =
23
23
[ zlib wxGTK perl cryptopp libupnp gettext pkgconfig makeWrapper ]
24
24
++ lib.optional httpServer libpng;
25
25
+
26
26
+
patches = [ ./gcc47.patch ]; # from Gentoo
25
27
26
28
configureFlags = ''
27
29
--with-crypto-prefix=${cryptopp}
+21
pkgs/tools/networking/p2p/amule/gcc47.patch
···
1
1
+
# http://code.google.com/p/amule/source/detail?r=10772
2
2
+
diff -ur aMule-2.3.1.orig//src/ObservableQueue.h aMule-2.3.1/src/ObservableQueue.h
3
3
+
--- aMule-2.3.1.orig//src/ObservableQueue.h 2012-04-22 19:40:05.560084120 +0200
4
4
+
+++ aMule-2.3.1/src/ObservableQueue.h 2012-04-22 19:40:32.479085322 +0200
5
5
+
@@ -331,14 +331,14 @@
6
6
+
template <typename ValueType>
7
7
+
void CObservableQueue<ValueType>::ObserverAdded( ObserverType* o )
8
8
+
{
9
9
+
- NotifyObservers( EventType( EventType::STARTING ), o );
10
10
+
+ this->NotifyObservers( EventType( EventType::STARTING ), o );
11
11
+
}
12
12
+
13
13
+
14
14
+
template <typename ValueType>
15
15
+
void CObservableQueue<ValueType>::ObserverRemoved( ObserverType* o )
16
16
+
{
17
17
+
- NotifyObservers( EventType( EventType::STOPPING ), o );
18
18
+
+ this->NotifyObservers( EventType( EventType::STOPPING ), o );
19
19
+
}
20
20
+
21
21
+