Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / svn-all-fast-export / default.nix
bloba40e959a50a41cf3497c616ba445a7c4ba938264
1 { lib, stdenv, fetchFromGitHub, qmake, qtbase, qttools, subversion, apr }:
3 let
4   version = "1.0.18";
5 in
6 stdenv.mkDerivation {
7   pname = "svn-all-fast-export";
8   inherit version;
10   src = fetchFromGitHub {
11     owner = "svn-all-fast-export";
12     repo = "svn2git";
13     rev = version;
14     sha256 = "1b5yx2316hbyvw3v30vn1ljma9yd21nd59wis1gi34g92lgvqcd6";
15   };
17   nativeBuildInputs = [ qmake qttools ];
18   buildInputs = [ apr.dev subversion.dev qtbase ];
20   qmakeFlags = [
21     "VERSION=${version}"
22     "APR_INCLUDE=${apr.dev}/include/apr-1"
23     "SVN_INCLUDE=${subversion.dev}/include/subversion-1"
24   ];
26   NIX_LDFLAGS = "-lsvn_fs-1";
28   dontWrapQtApps = true;
30   meta = with lib; {
31     homepage = "https://github.com/svn-all-fast-export/svn2git";
32     description = "A fast-import based converter for an svn repo to git repos";
33     license = licenses.gpl3;
34     platforms = platforms.all;
35     maintainers = [ maintainers.flokli ];
36   };