rapidsvn: 0.12.1 -> unstable-2021-08-02

+35 -29
+35 -29
pkgs/applications/version-management/rapidsvn/default.nix
··· 1 - { lib, stdenv, fetchurl, wxGTK30, subversion, apr, aprutil, python3, fetchpatch }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , wxGTK32 6 + , subversion 7 + , apr 8 + , aprutil 9 + , python3 10 + , darwin 11 + }: 2 12 3 13 stdenv.mkDerivation rec { 4 14 pname = "rapidsvn"; 5 - version = "0.12.1"; 15 + version = "unstable-2021-08-02"; 6 16 7 - src = fetchurl { 8 - url = "http://www.rapidsvn.org/download/release/${version}/${pname}-${version}.tar.gz"; 9 - sha256 = "1bmcqjc12k5w0z40k7fkk8iysqv4fw33i80gvcmbakby3d4d4i4p"; 17 + src = fetchFromGitHub { 18 + owner = "RapidSVN"; 19 + repo = "RapidSVN"; 20 + rev = "3a564e071c3c792f5d733a9433b9765031f8eed0"; 21 + hash = "sha256-6bQTHAOZAP+06kZDHjDx9VnGm4vrZUDyLHZdTpiyP08="; 10 22 }; 11 23 12 - buildInputs = [ wxGTK30 subversion apr aprutil python3 ]; 24 + postPatch = '' 25 + substituteInPlace configure.ac \ 26 + --replace "[3.0.*]" "[3.*]" 27 + ''; 13 28 14 - env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 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 + ]; 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 - 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 - ]; 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 - broken = stdenv.isDarwin; 50 56 }; 51 57 }