2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchgit
|
2016-01-15 03:56:45 +00:00
|
|
|
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, makeWrapper, xmlto
|
|
|
|
, pythonPackages }:
|
2012-04-16 00:48:16 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-bz";
|
2016-01-24 19:31:44 +00:00
|
|
|
version = "3.2015-09-08";
|
2012-04-16 00:48:16 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "146z57m8nblgsxm4z6qnsvcy81p11d0w88v93ybacc6w21plh8hc";
|
2016-01-15 03:56:45 +00:00
|
|
|
rev = "e17bbae7a2ce454d9f69c32fc40066995d44913d";
|
2012-04-16 00:48:16 +01:00
|
|
|
url = "git://git.fishsoup.net/git-bz";
|
|
|
|
};
|
|
|
|
|
2016-01-15 03:56:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
asciidoc docbook_xml_dtd_45 docbook_xsl libxslt makeWrapper xmlto
|
2012-04-16 00:48:16 +01:00
|
|
|
];
|
2016-01-15 03:56:45 +00:00
|
|
|
buildInputs = []
|
|
|
|
++ (with pythonPackages; [ python pysqlite ]);
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs configure
|
2012-04-16 00:48:16 +01:00
|
|
|
|
2016-01-15 03:56:45 +00:00
|
|
|
# Don't create a .html copy of the man page that isn't installed anyway:
|
|
|
|
substituteInPlace Makefile --replace "git-bz.html" ""
|
2012-04-16 00:48:16 +01:00
|
|
|
'';
|
|
|
|
|
2016-01-15 03:56:45 +00:00
|
|
|
postInstall = ''
|
2012-04-16 00:48:16 +01:00
|
|
|
wrapProgram $out/bin/git-bz \
|
2016-12-09 03:59:53 +00:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath "${pythonPackages.pycrypto}")" \
|
2016-01-15 03:56:45 +00:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath "${pythonPackages.pysqlite}")"
|
2012-04-16 00:48:16 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-01-15 04:21:26 +00:00
|
|
|
description = "Bugzilla integration for git";
|
2012-04-16 00:48:16 +01:00
|
|
|
longDescription = ''
|
|
|
|
git-bz is a tool for integrating the Git command line with the
|
|
|
|
Bugzilla bug-tracking system. Operations such as attaching patches to
|
|
|
|
bugs, applying patches in bugs to your current tree, and closing bugs
|
2014-12-30 02:31:03 +00:00
|
|
|
once you've pushed the fixes publicly can be done completely from
|
2012-04-16 00:48:16 +01:00
|
|
|
the command line without having to go to your web browser.
|
|
|
|
|
|
|
|
Authentication for git-bz is done by reading the cookies for the
|
|
|
|
Bugzilla host from your web browser. In order to do this, git-bz needs
|
|
|
|
to know how to access the cookies for your web browser; git-bz
|
|
|
|
currently is able to do this for Firefox, Epiphany, Galeon and
|
|
|
|
Chromium on Linux.
|
|
|
|
'';
|
2016-01-15 04:21:26 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://git.fishsoup.net/cgit/git-bz/";
|
2012-04-16 00:48:16 +01:00
|
|
|
|
2016-01-15 04:21:26 +00:00
|
|
|
platforms = platforms.linux;
|
2012-04-16 00:48:16 +01:00
|
|
|
};
|
|
|
|
}
|