forked from mirrors/nixpkgs
58a1c542ca
The current version no longer works with our packaged Mecurial.[1] The original repository appears to no longer be maintained, but there is a maintained fork, which is now used for the Debian package. [1]: https://github.com/felipec/git-remote-hg/issues/72
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, mercurial, makeWrapper
|
|
, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libxml2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "git-remote-hg";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mnauw";
|
|
repo = "git-remote-hg";
|
|
rev = "v${version}";
|
|
sha256 = "0anl054zdi5rg5m4bm1n763kbdjkpdws3c89c8w8m5gq1ifsbd4d";
|
|
};
|
|
|
|
buildInputs = [ mercurial.python mercurial makeWrapper
|
|
asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt libxml2
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
installFlags = "HOME=\${out} install-doc";
|
|
|
|
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 or []}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = https://github.com/mnauw/git-remote-hg;
|
|
description = "Semi-official Mercurial bridge from Git project";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.garbas ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|