1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2018 Robin Templeton <robin@igalia.com>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages phabricator)
20 #:use-module (gnu packages php)
21 #:use-module (gnu packages version-control)
22 #:use-module (guix build-system gnu)
23 #:use-module (guix git-download)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (guix packages))
27 (define-public libphutil
28 (let ((commit "b29d76e1709ef018cc5edc7c03033fd9fdebc578")
32 (version (git-version "0.0.0" revision commit))
36 (url "https://github.com/phacility/libphutil.git")
38 (file-name (git-file-name name version))
41 "06j84721r9r8624fmil62b5crs2qs0v6rr3cvv2zvkvwhxwrwv1l"))))
42 (build-system gnu-build-system)
43 ;; TODO: Unbundle jsonlint and porter-stemmer.
47 (modify-phases %standard-phases
52 (let ((lib (string-append %output "/lib/libphutil")))
54 (copy-recursively "." lib))
58 (home-page "https://github.com/phacility/libphutil")
59 (synopsis "PHP utility library")
61 "@code{libphutil} is a collection of utility classes and functions for
63 ;; Bundled libraries are expat-licensed.
64 (license (list license:asl2.0 license:expat)))))
66 (define-public arcanist
67 (let ((commit "45a8d22c74a62624e69f5cd6ce901c9ab2658904")
71 (version (git-version "0.0.0" revision commit))
75 (url "https://github.com/phacility/arcanist.git")
77 (file-name (git-file-name name version))
80 "13vswhqy9sap6841y93j4mj71dl27vhcivcn3rzyi0cchkhg2ac9"))))
81 (build-system gnu-build-system)
85 (modify-phases %standard-phases
90 (let ((bin (string-append %output "/bin"))
91 (lib (string-append %output "/lib/arcanist")))
93 (copy-recursively "." lib)
95 (symlink (string-append lib "/bin/arc")
96 (string-append bin "/arc"))
97 (wrap-program (string-append bin "/arc")
99 (,(string-append (assoc-ref %build-inputs "libphutil")
103 (string-append (assoc-ref %build-inputs i) "/bin"))
104 '("git" "mercurial" "subversion"))))))
106 (add-before 'reset-gzip-timestamps 'make-compressed-files-writable
108 (for-each make-file-writable
109 (find-files %output ".*\\.t?gz$"))
113 ("libphutil" ,libphutil)
115 ("mercurial" ,mercurial)
116 ("subversion" ,subversion)))
117 (home-page "https://github.com/phacility/arcanist")
118 (synopsis "Command-line interface for Phabricator")
120 "Arcanist is the command-line tool for the Phabricator software
121 development service. It allows you to interact with Phabricator installs to
122 send code for review, download patches, transfer files, view status, make API
123 calls, and various other things.")
124 (license license:asl2.0))))