summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-remote-hg/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/version-management/git-remote-hg/default.nix')
-rw-r--r--pkgs/applications/version-management/git-remote-hg/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-remote-hg/default.nix b/pkgs/applications/version-management/git-remote-hg/default.nix
new file mode 100644
index 0000000000000..b76f7515eba6c
--- /dev/null
+++ b/pkgs/applications/version-management/git-remote-hg/default.nix
@@ -0,0 +1,32 @@
+{ lib, fetchFromGitHub, python3Packages
+, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libxml2
+}:
+
+python3Packages.buildPythonApplication rec {
+  pname = "git-remote-hg";
+  version = "1.0.3.2";
+
+  src = fetchFromGitHub {
+    owner = "mnauw";
+    repo = "git-remote-hg";
+    rev = "v${version}";
+    sha256 = "0b5lfbrcrvzpz380817md00lbgy5yl4y76vs3vm0bpm5wmr7c027";
+  };
+
+  nativeBuildInputs = [
+    asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt libxml2
+  ];
+  propagatedBuildInputs = with python3Packages; [ mercurial ];
+
+  postInstall = ''
+    make install-doc prefix=$out
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/mnauw/git-remote-hg";
+    description = "Semi-official Mercurial bridge from Git project";
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ qyliss ];
+    platforms = platforms.unix;
+  };
+}