2019-03-16 01:56:18 +03:00
|
|
|
{ stdenv, lib, fetchFromGitHub, mercurial, makeWrapper
|
|
|
|
, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libxml2
|
2014-06-28 17:15:31 +04:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-16 01:56:18 +03:00
|
|
|
pname = "git-remote-hg";
|
2019-10-07 10:40:43 +03:00
|
|
|
version = "1.0.1";
|
2014-06-28 17:15:31 +04:00
|
|
|
|
2019-03-16 01:56:18 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mnauw";
|
|
|
|
repo = "git-remote-hg";
|
|
|
|
rev = "v${version}";
|
2019-10-07 10:40:43 +03:00
|
|
|
sha256 = "1by5ygqvq9ww990kdrjndaqsssyf2jc4n380f9pfh2avsr7871wc";
|
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
|
|
|
'';
|
|
|
|
|
2019-03-16 01:56:18 +03:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/mnauw/git-remote-hg;
|
|
|
|
description = "Semi-official Mercurial bridge from Git project";
|
2014-06-28 17:15:31 +04:00
|
|
|
license = licenses.gpl2;
|
2019-07-03 12:27:39 +03:00
|
|
|
maintainers = [ ];
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = platforms.unix;
|
2014-06-28 17:15:31 +04:00
|
|
|
};
|
|
|
|
}
|