depot/third_party/nixpkgs/pkgs/applications/version-management/rapidsvn/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

58 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, wxGTK32
, subversion
, apr
, aprutil
, python3
, darwin
}:
stdenv.mkDerivation rec {
pname = "rapidsvn";
version = "unstable-2021-08-02";
src = fetchFromGitHub {
owner = "RapidSVN";
repo = "RapidSVN";
rev = "3a564e071c3c792f5d733a9433b9765031f8eed0";
hash = "sha256-6bQTHAOZAP+06kZDHjDx9VnGm4vrZUDyLHZdTpiyP08=";
};
postPatch = ''
substituteInPlace configure.ac \
--replace "[3.0.*]" "[3.*]"
'';
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
wxGTK32
subversion
apr
aprutil
python3
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Cocoa
];
configureFlags = [
"--with-svn-include=${subversion.dev}/include"
"--with-svn-lib=${subversion.out}/lib"
];
env.NIX_CFLAGS_COMPILE = "-std=c++14";
meta = {
description = "Multi-platform GUI front-end for the Subversion revision system";
homepage = "http://rapidsvn.tigris.org/";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.viric ];
platforms = lib.platforms.unix;
mainProgram = "rapidsvn";
};
}