nixpkgs/pkgs/applications/version-management/git-and-tools/git-remote-hg/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

{ 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 {
pname = "git-remote-hg";
version = "1.0.1";
2014-06-28 17:15:31 +04:00
src = fetchFromGitHub {
owner = "mnauw";
repo = "git-remote-hg";
rev = "v${version}";
sha256 = "1by5ygqvq9ww990kdrjndaqsssyf2jc4n380f9pfh2avsr7871wc";
2014-06-28 17:15:31 +04:00
};
buildInputs = [ mercurial.python mercurial makeWrapper
asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt libxml2
2014-06-28 17:15:31 +04:00
];
doCheck = false;
2019-11-05 04:10:31 +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 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;
maintainers = [ ];
platforms = platforms.unix;
2014-06-28 17:15:31 +04:00
};
}