2016-01-15 04:56:45 +01:00
|
|
|
{ stdenv, fetchgit
|
|
|
|
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, makeWrapper, xmlto
|
|
|
|
, pythonPackages }:
|
2012-04-16 01:48:16 +02:00
|
|
|
|
2016-01-15 04:56:45 +01:00
|
|
|
let version = "3.2015-09-08"; in
|
2012-04-16 01:48:16 +02:00
|
|
|
stdenv.mkDerivation {
|
2016-01-15 04:56:45 +01:00
|
|
|
name = "git-bz-${version}";
|
2012-04-16 01:48:16 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
2016-01-15 04:56:45 +01:00
|
|
|
sha256 = "19d9c81d4eeabe87079d8f60e4cfa7303f776f5a7c9874642cf2bd188851d029";
|
|
|
|
rev = "e17bbae7a2ce454d9f69c32fc40066995d44913d";
|
2012-04-16 01:48:16 +02:00
|
|
|
url = "git://git.fishsoup.net/git-bz";
|
|
|
|
};
|
|
|
|
|
2016-01-15 04:56:45 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
asciidoc docbook_xml_dtd_45 docbook_xsl libxslt makeWrapper xmlto
|
2012-04-16 01:48:16 +02:00
|
|
|
];
|
2016-01-15 04:56:45 +01:00
|
|
|
buildInputs = []
|
|
|
|
++ (with pythonPackages; [ python pysqlite ]);
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs configure
|
2012-04-16 01:48:16 +02:00
|
|
|
|
2016-01-15 04:56:45 +01: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 01:48:16 +02:00
|
|
|
'';
|
|
|
|
|
2016-01-15 04:56:45 +01:00
|
|
|
postInstall = ''
|
2012-04-16 01:48:16 +02:00
|
|
|
wrapProgram $out/bin/git-bz \
|
2016-01-15 04:56:45 +01:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath "${pythonPackages.pysqlite}")"
|
2012-04-16 01:48:16 +02:00
|
|
|
'';
|
|
|
|
|
2016-01-15 05:21:26 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
|
|
|
description = "Bugzilla integration for git";
|
2012-04-16 01:48:16 +02: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 03:31:03 +01:00
|
|
|
once you've pushed the fixes publicly can be done completely from
|
2012-04-16 01:48:16 +02: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 05:21:26 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
homepage = http://git.fishsoup.net/cgit/git-bz/;
|
2012-04-16 01:48:16 +02:00
|
|
|
|
2016-01-15 05:21:26 +01:00
|
|
|
mantainers = with maintainers; [ nckx ];
|
|
|
|
platforms = platforms.linux;
|
2012-04-16 01:48:16 +02:00
|
|
|
};
|
|
|
|
}
|