2014-06-28 14:15:31 +01:00
|
|
|
{ stdenv, fetchgit, mercurial, makeWrapper,
|
|
|
|
asciidoc, xmlto, dbus, docbook_xsl, docbook_xml_dtd_45, libxslt, libxml2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-12-23 23:20:14 +00:00
|
|
|
rev = "e716a9e1a9e460a45663694ba4e9e8894a8452b2";
|
|
|
|
version = "v0.2-e716a9e1a9e460a45663694ba4e9e8894a8452b2";
|
2014-06-28 14:15:31 +01:00
|
|
|
name = "git-remote-hg-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
2014-12-23 23:20:14 +00:00
|
|
|
url = "git://github.com/fingolfin/git-remote-hg.git";
|
|
|
|
sha256 = "7c61c8f2be47d96c4244f0f8a3c8f9b994994b15dbe1754581f746888d705463";
|
2014-06-28 14:15:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mercurial.python mercurial makeWrapper
|
|
|
|
asciidoc xmlto dbus docbook_xsl docbook_xml_dtd_45 libxslt libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installFlags = "HOME=\${out}";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/git-remote-hg \
|
|
|
|
--prefix PYTHONPATH : "$(echo ${mercurial}/lib/python*/site-packages):$(echo ${mercurial.python}/lib/python*/site-packages)${stdenv.lib.concatMapStrings (x: ":$(echo ${x}/lib/python*/site-packages)") mercurial.pythonPackages}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/felipec/git-remote-hg";
|
|
|
|
description = "semi-official Mercurial bridge from Git project, once installed, it allows you to clone, fetch and push to and from Mercurial repositories as if they were Git ones";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.garbas ];
|
|
|
|
};
|
|
|
|
}
|