3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/git-and-tools/git-remote-hg/default.nix

36 lines
1.2 KiB
Nix
Raw Normal View History

2014-06-28 14:15:31 +01:00
{ stdenv, fetchgit, mercurial, makeWrapper,
asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libxml2
2014-06-28 14:15:31 +01:00
}:
stdenv.mkDerivation rec {
rev = "e716a9e1a9e460a45663694ba4e9e8894a8452b2";
version = "0.2-${rev}";
2014-06-28 14:15:31 +01:00
name = "git-remote-hg-${version}";
src = fetchgit {
inherit rev;
url = "git://github.com/fingolfin/git-remote-hg.git";
sha256 = "0cmlfdxfabrs3x10mfjfap8wz67s8xk2pjn2wlcj9k2v84gji60m";
2014-06-28 14:15:31 +01:00
};
buildInputs = [ mercurial.python mercurial makeWrapper
asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt libxml2
2014-06-28 14:15:31 +01:00
];
doCheck = false;
installFlags = "HOME=\${out} install-doc";
2014-06-28 14:15:31 +01:00
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";
2014-06-28 14:15:31 +01:00
license = licenses.gpl2;
maintainers = [ maintainers.garbas ];
};
}