2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, wxGTK32
|
|
|
|
, subversion
|
|
|
|
, apr
|
|
|
|
, aprutil
|
|
|
|
, python3
|
|
|
|
, darwin
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rapidsvn";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "unstable-2021-08-02";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RapidSVN";
|
|
|
|
repo = "RapidSVN";
|
|
|
|
rev = "3a564e071c3c792f5d733a9433b9765031f8eed0";
|
|
|
|
hash = "sha256-6bQTHAOZAP+06kZDHjDx9VnGm4vrZUDyLHZdTpiyP08=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "[3.0.*]" "[3.*]"
|
|
|
|
'';
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wxGTK32
|
|
|
|
subversion
|
|
|
|
apr
|
|
|
|
aprutil
|
|
|
|
python3
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Cocoa
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-svn-include=${subversion.dev}/include"
|
|
|
|
"--with-svn-lib=${subversion.out}/lib"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-std=c++14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Multi-platform GUI front-end for the Subversion revision system";
|
|
|
|
homepage = "http://rapidsvn.tigris.org/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = [ lib.maintainers.viric ];
|
2022-05-18 14:49:53 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "rapidsvn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|