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