projects/guix·blob python-team · refs

77 lines · 3.3 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2018 Robin Templeton <[email protected]>
3;;; Copyright © 2020 Efraim Flashner <[email protected]>
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages phabricator)
21 #:use-module (gnu packages bash)
22 #:use-module (gnu packages php)
23 #:use-module (gnu packages version-control)
24 #:use-module (guix build-system gnu)
25 #:use-module (guix git-download)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix packages))
28
29(define-public arcanist
30 (let ((commit "ceb082ef6b2919d76a90d4a53ca84f5b1e0c2c06")
31 (revision "2"))
32 (package
33 (name "arcanist")
34 (version (git-version "0.0.0" revision commit))
35 (source (origin
36 (method git-fetch)
37 (uri (git-reference
38 (url "https://github.com/phacility/arcanist")
39 (commit commit)))
40 (file-name (git-file-name name version))
41 (sha256
42 (base32
43 "16590nywh3cpm2yq4igw3nfa8g84kwza215mrnqr2k6b2cqzjak3"))))
44 (build-system gnu-build-system)
45 ;; TODO: Unbundle jsonlint
46 (arguments
47 '(#:tests? #f
48 #:phases
49 (modify-phases %standard-phases
50 (delete 'configure)
51 (delete 'build)
52 (replace 'install
53 (lambda* (#:key outputs #:allow-other-keys)
54 (let* ((out (assoc-ref outputs "out"))
55 (bin (string-append out "/bin"))
56 (lib (string-append out "/lib/arcanist")))
57 (mkdir-p lib)
58 (copy-recursively "." lib)
59 (mkdir-p bin)
60 (symlink (string-append lib "/bin/arc")
61 (string-append bin "/arc"))
62 (wrap-program (string-append bin "/arc")
63 `("PATH" ":" prefix
64 (,@(map (lambda (i)
65 (string-append (assoc-ref %build-inputs i) "/bin"))
66 '("php" "git" "mercurial" "subversion")))))))))))
67 (inputs
68 (list bash-minimal php git mercurial subversion))
69 (home-page "https://github.com/phacility/arcanist")
70 (synopsis "Command-line interface for Phabricator")
71 (description
72 "Arcanist is the command-line tool for the Phabricator software
73development service. It allows you to interact with Phabricator installs to
74send code for review, download patches, transfer files, view status, make API
75calls, and various other things.")
76 ;; Bundled libraries are expat-licensed.
77 (license (list license:asl2.0 license:expat)))))