tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rapidsvn: 0.12.1 -> unstable-2021-08-02
Weijia Wang
2 years ago
b3a8004b
d0781217
+35
-29
1 changed file
expand all
collapse all
unified
split
pkgs
applications
version-management
rapidsvn
default.nix
+35
-29
pkgs/applications/version-management/rapidsvn/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, wxGTK30, subversion, apr, aprutil, python3, fetchpatch }:
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, autoreconfHook
5
5
+
, wxGTK32
6
6
+
, subversion
7
7
+
, apr
8
8
+
, aprutil
9
9
+
, python3
10
10
+
, darwin
11
11
+
}:
2
12
3
13
stdenv.mkDerivation rec {
4
14
pname = "rapidsvn";
5
5
-
version = "0.12.1";
15
15
+
version = "unstable-2021-08-02";
6
16
7
7
-
src = fetchurl {
8
8
-
url = "http://www.rapidsvn.org/download/release/${version}/${pname}-${version}.tar.gz";
9
9
-
sha256 = "1bmcqjc12k5w0z40k7fkk8iysqv4fw33i80gvcmbakby3d4d4i4p";
17
17
+
src = fetchFromGitHub {
18
18
+
owner = "RapidSVN";
19
19
+
repo = "RapidSVN";
20
20
+
rev = "3a564e071c3c792f5d733a9433b9765031f8eed0";
21
21
+
hash = "sha256-6bQTHAOZAP+06kZDHjDx9VnGm4vrZUDyLHZdTpiyP08=";
10
22
};
11
23
12
12
-
buildInputs = [ wxGTK30 subversion apr aprutil python3 ];
24
24
+
postPatch = ''
25
25
+
substituteInPlace configure.ac \
26
26
+
--replace "[3.0.*]" "[3.*]"
27
27
+
'';
13
28
14
14
-
env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ];
29
29
+
nativeBuildInputs = [
30
30
+
autoreconfHook
31
31
+
];
32
32
+
33
33
+
buildInputs = [
34
34
+
wxGTK32
35
35
+
subversion
36
36
+
apr
37
37
+
aprutil
38
38
+
python3
39
39
+
] ++ lib.optionals stdenv.isDarwin [
40
40
+
darwin.apple_sdk.frameworks.Cocoa
41
41
+
];
15
42
16
43
configureFlags = [
17
44
"--with-svn-include=${subversion.dev}/include"
18
45
"--with-svn-lib=${subversion.out}/lib"
19
46
];
20
47
21
21
-
patches = [
22
22
-
./fix-build.patch
23
23
-
# Python 3 compatibility patches
24
24
-
(fetchpatch {
25
25
-
url = "https://github.com/RapidSVN/RapidSVN/pull/44/commits/2e26fd5d6a413d6c3a055c17ac4840b95d1537e9.patch";
26
26
-
hash = "sha256-8acABzscgZh1bfAt35KHfU+nfaiO7P1b+lh34Bj0REI=";
27
27
-
})
28
28
-
(fetchpatch {
29
29
-
url = "https://github.com/RapidSVN/RapidSVN/pull/44/commits/92927af764f92b3731333ed3dba637f98611167a.patch";
30
30
-
hash = "sha256-4PdShGcfFwxjdI3ygbnKFAa8l9dGERq/xSl54WisgKM=";
31
31
-
})
32
32
-
(fetchpatch {
33
33
-
url = "https://github.com/RapidSVN/RapidSVN/pull/44/commits/3e375f11d94cb8faddb8b7417354a9fb51f304ec.patch";
34
34
-
hash = "sha256-BUpCMEH7jctOLtJktDUE52bxexfLemLItZ0IgdAnq9g=";
35
35
-
})
36
36
-
# wxWidgets 3.0 compatibility patches
37
37
-
(fetchpatch {
38
38
-
url = "https://sources.debian.org/data/main/r/rapidsvn/0.12.1dfsg-3.1/debian/patches/wx3.0.patch";
39
39
-
sha256 = "sha256-/07+FoOrNw/Pc+wlVt4sGOITfIIEu8ZbI3/ym0u8bs4=";
40
40
-
})
41
41
-
];
48
48
+
env.NIX_CFLAGS_COMPILE = "-std=c++14";
42
49
43
50
meta = {
44
51
description = "Multi-platform GUI front-end for the Subversion revision system";
···
46
53
license = lib.licenses.gpl3Plus;
47
54
maintainers = [ lib.maintainers.viric ];
48
55
platforms = lib.platforms.unix;
49
49
-
broken = stdenv.isDarwin;
50
56
};
51
57
}