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

55 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchgit
2016-01-15 03:56:45 +00:00
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, makeWrapper, xmlto
2021-03-25 14:28:57 +00:00
, python2Packages }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "git-bz";
version = "3.2015-09-08";
src = fetchgit {
sha256 = "146z57m8nblgsxm4z6qnsvcy81p11d0w88v93ybacc6w21plh8hc";
2016-01-15 03:56:45 +00:00
rev = "e17bbae7a2ce454d9f69c32fc40066995d44913d";
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
];
2016-01-15 03:56:45 +00:00
buildInputs = []
2021-03-25 14:28:57 +00:00
++ (with python2Packages; [ python pysqlite ]);
2016-01-15 03:56:45 +00:00
postPatch = ''
patchShebangs configure
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" ""
'';
2016-01-15 03:56:45 +00:00
postInstall = ''
wrapProgram $out/bin/git-bz \
2021-03-25 14:28:57 +00:00
--prefix PYTHONPATH : "$(toPythonPath "${python2Packages.pycrypto}")" \
--prefix PYTHONPATH : "$(toPythonPath "${python2Packages.pysqlite}")"
'';
meta = with lib; {
description = "Bugzilla integration for git";
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
once you've pushed the fixes publicly can be done completely from
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.
'';
license = licenses.gpl2Plus;
homepage = "http://git.fishsoup.net/cgit/git-bz/";
platforms = platforms.linux;
};
}