mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
5e7f049fc9
svn path=/nixpkgs/trunk/; revision=34169
25 lines
633 B
Nix
25 lines
633 B
Nix
{ stdenv, fetchgit, qt4, subversion, apr}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "svn2git-kde-1.0.5";
|
|
|
|
src = fetchgit {
|
|
url = http://git.gitorious.org/svn2git/svn2git.git;
|
|
rev = "149d6c6e14a1724c96999328683a9264fc508264";
|
|
sha256 = "818673fe751b00a42b6ed3e78a783549fb09b5245a01dee47b3dded667bfc582";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
buildInputs = [ subversion apr qt4 ];
|
|
}
|