2016-01-14 19:56:45 -08:00
|
|
|
{ stdenv, fetchgit
|
|
|
|
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, makeWrapper, xmlto
|
|
|
|
, pythonPackages }:
|
2012-04-15 16:48:16 -07:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "git-bz";
|
2016-01-24 11:31:44 -08:00
|
|
|
version = "3.2015-09-08";
|
2012-04-15 16:48:16 -07:00
|
|
|
|
|
|
|
src = fetchgit {
|
2016-06-02 04:26:44 -07:00
|
|
|
sha256 = "146z57m8nblgsxm4z6qnsvcy81p11d0w88v93ybacc6w21plh8hc";
|
2016-01-14 19:56:45 -08:00
|
|
|
rev = "e17bbae7a2ce454d9f69c32fc40066995d44913d";
|
2012-04-15 16:48:16 -07:00
|
|
|
url = "git://git.fishsoup.net/git-bz";
|
|
|
|
};
|
|
|
|
|
2016-01-14 19:56:45 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
asciidoc docbook_xml_dtd_45 docbook_xsl libxslt makeWrapper xmlto
|
2012-04-15 16:48:16 -07:00
|
|
|
];
|
2016-01-14 19:56:45 -08:00
|
|
|
buildInputs = []
|
|
|
|
++ (with pythonPackages; [ python pysqlite ]);
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs configure
|
2012-04-15 16:48:16 -07:00
|
|
|
|
2016-01-14 19:56:45 -08:00
|
|
|
# Don't create a .html copy of the man page that isn't installed anyway:
|
|
|
|
substituteInPlace Makefile --replace "git-bz.html" ""
|
2012-04-15 16:48:16 -07:00
|
|
|
'';
|
|
|
|
|
2016-01-14 19:56:45 -08:00
|
|
|
postInstall = ''
|
2012-04-15 16:48:16 -07:00
|
|
|
wrapProgram $out/bin/git-bz \
|
2016-12-08 19:59:53 -08:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath "${pythonPackages.pycrypto}")" \
|
2016-01-14 19:56:45 -08:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath "${pythonPackages.pysqlite}")"
|
2012-04-15 16:48:16 -07:00
|
|
|
'';
|
|
|
|
|
2016-01-14 20:21:26 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Bugzilla integration for git";
|
2012-04-15 16:48:16 -07: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-29 18:31:03 -08:00
|
|
|
once you've pushed the fixes publicly can be done completely from
|
2012-04-15 16:48:16 -07: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-14 20:21:26 -08:00
|
|
|
license = licenses.gpl2Plus;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://git.fishsoup.net/cgit/git-bz/";
|
2012-04-15 16:48:16 -07:00
|
|
|
|
2016-01-14 20:21:26 -08:00
|
|
|
platforms = platforms.linux;
|
2012-04-15 16:48:16 -07:00
|
|
|
};
|
|
|
|
}
|