nixpkgs/pkgs/by-name/ra/rapidsvn/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

59 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.hostPlatform.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 = [ ];
platforms = lib.platforms.unix;
mainProgram = "rapidsvn";
};
}