1 # Taken from nixpkgs repository
13 python3Packages.buildPythonApplication rec {
17 src = fetchFromGitHub {
18 owner = "stacked-git";
21 sha256 = "sha256-gfPf1yRmx1Mn1TyCBWmjQJBgXLlZrDcew32C9o6uNYk=";
24 nativeBuildInputs = [ installShellFiles asciidoc xmlto docbook_xsl ];
28 checkInputs = [ git perl ];
31 for f in Documentation/*.xsl; do
32 substituteInPlace $f \
33 --replace http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl \
34 ${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl \
35 --replace http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
36 ${docbook_xsl}/xml/xsl/docbook/html/docbook.xsl
41 "prefix=${placeholder "out"}"
42 "MAN_BASE_URL=${placeholder "out"}/share/man"
43 "XMLTO_EXTRA=--skip-validation"
46 buildFlags = [ "all" ];
49 checkFlags = [ "PERL_PATH=${perl}/bin/perl" ];
51 installTargets = [ "install" ];
53 installShellCompletion \
54 --zsh $out/share/stgit/completion/stgit.zsh
58 description = "A patch manager implemented on top of Git";
59 homepage = "https://stacked-git.github.io/";
60 license = licenses.gpl2Only;
61 platforms = platforms.unix;
62 maintainers = with maintainers; [ jshholland ];