2014-06-28 17:15:31 +04:00
|
|
|
{ stdenv, fetchgit, mercurial, makeWrapper,
|
2015-04-29 19:58:04 +03:00
|
|
|
asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libxml2
|
2014-06-28 17:15:31 +04:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-12-24 02:20:14 +03:00
|
|
|
rev = "e716a9e1a9e460a45663694ba4e9e8894a8452b2";
|
2016-03-01 23:04:27 +03:00
|
|
|
version = "0.2-${rev}";
|
2014-06-28 17:15:31 +04:00
|
|
|
name = "git-remote-hg-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
2014-12-24 02:20:14 +03:00
|
|
|
url = "git://github.com/fingolfin/git-remote-hg.git";
|
2016-06-02 14:26:44 +03:00
|
|
|
sha256 = "0cmlfdxfabrs3x10mfjfap8wz67s8xk2pjn2wlcj9k2v84gji60m";
|
2014-06-28 17:15:31 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mercurial.python mercurial makeWrapper
|
2015-04-29 19:58:04 +03:00
|
|
|
asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt libxml2
|
2014-06-28 17:15:31 +04:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2015-04-29 19:58:04 +03:00
|
|
|
installFlags = "HOME=\${out} install-doc";
|
2014-06-28 17:15:31 +04:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/git-remote-hg \
|
2016-10-14 01:03:12 +03:00
|
|
|
--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 or []}"
|
2014-06-28 17:15:31 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = https://github.com/felipec/git-remote-hg;
|
2016-06-20 13:53:46 +03:00
|
|
|
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";
|
2014-06-28 17:15:31 +04:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.garbas ];
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = platforms.unix;
|
2014-06-28 17:15:31 +04:00
|
|
|
};
|
|
|
|
}
|