2012-05-12 21:45:55 +02:00
|
|
|
{ stdenv, fetchgit, qt4, subversion, apr}:
|
2012-04-04 17:30:29 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-05-18 17:01:54 +02:00
|
|
|
name = "svn2git-kde-1.0.5";
|
2012-04-04 17:30:29 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = http://git.gitorious.org/svn2git/svn2git.git;
|
2012-05-18 17:01:54 +02:00
|
|
|
rev = "149d6c6e14a1724c96999328683a9264fc508264";
|
|
|
|
sha256 = "818673fe751b00a42b6ed3e78a783549fb09b5245a01dee47b3dded667bfc582";
|
2012-04-04 17:30:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
sed -i 's|/bin/cat|cat|' ./src/repository.cpp
|
|
|
|
qmake
|
|
|
|
make CXXFLAGS='-I${apr}/include/apr-1 -I${subversion}/include/subversion-1 -DVER="\"${src.rev}\""'
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
cp svn-all-fast-export $out/bin
|
|
|
|
'';
|
|
|
|
|
2012-05-12 21:45:55 +02:00
|
|
|
buildInputs = [ subversion apr qt4 ];
|
2012-04-04 17:30:29 +02:00
|
|
|
}
|