nixpkgs/pkgs/applications/version-management/git-and-tools/svn-all-fast-export/default.nix

37 lines
905 B
Nix

{ stdenv, fetchFromGitHub, qmake, qtbase, qttools, subversion, apr }:
let
version = "1.0.13";
in
stdenv.mkDerivation {
name = "svn-all-fast-export-${version}";
src = fetchFromGitHub {
owner = "svn-all-fast-export";
repo = "svn2git";
rev = version;
sha256 = "0f1qj0c4cdq46mz54wcy17g7rq1fy2q0bq3sswhr7r5a2s433x4f";
};
nativeBuildInputs = [ qmake qttools ];
buildInputs = [ apr.dev subversion.dev qtbase ];
qmakeFlags = [
"VERSION=${version}"
"APR_INCLUDE=${apr.dev}/include/apr-1"
"SVN_INCLUDE=${subversion.dev}/include/subversion-1"
];
NIX_LDFLAGS = [
"-lsvn_fs-1"
];
meta = with stdenv.lib; {
homepage = https://github.com/svn-all-fast-export/svn2git;
description = "A fast-import based converter for an svn repo to git repos";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = [ maintainers.flokli ];
};
}