From 02b871de50cfa2a549cf5cd060be1fb22aaa3566 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 4 May 2011 10:07:56 +0000 Subject: [PATCH] add svn2git svn path=/nixpkgs/trunk/; revision=27135 --- .../git-and-tools/default.nix | 4 ++++ .../git-and-tools/svn2git/default.nix | 24 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/applications/version-management/git-and-tools/svn2git/default.nix diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index d400d4206f47..fd8b212514dd 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -98,6 +98,10 @@ rec { inherit fetchgit stdenv perl; }; + git2svn = import ./git2svn { + inherit stdenv fetchgit qt47 subversion apr; + }; + gitSubtree = stdenv.mkDerivation { name = "git-subtree-0.3"; src = fetchurl { diff --git a/pkgs/applications/version-management/git-and-tools/svn2git/default.nix b/pkgs/applications/version-management/git-and-tools/svn2git/default.nix new file mode 100644 index 000000000000..45a122105afa --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/svn2git/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchgit, qt47, subversion, apr}: + +stdenv.mkDerivation rec { + name = "svn2git"; + + src = fetchgit { + url = http://git.gitorious.org/svn2git/svn2git.git; + rev = "197979b6a641b8b5fa4856c700b1235491c73a41"; + sha256 = "fce3749b3db4940060c6065e927248afe18fd698f30ded6cddba201b67e5351c"; + }; + + buildPhase = '' + 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 qt47]; + +}