diff options
| author | Clément Lassieur <clement@lassieur.org> | 2016-09-10 23:13:32 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2016-09-11 10:01:18 +0300 |
| commit | 381000d794e970446a52b1ce2d4b79bc63e06f7b (patch) | |
| tree | a2752a960400c5b55ad1dcb8432a1a7a974956e4 /gnu/packages/openstack.scm | |
| parent | 90d8ef6bcb2b1216458ba7a99bb33947538e4461 (diff) | |
gnu: python-git-review: Wrap it so 'git', 'ssh' and 'scp' are found.
* gnu/packages/openstack.scm (python-git-review)[arguments]: Add
'wrap-program' phase.
[inputs]: Add openssh.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/openstack.scm')
| -rw-r--r-- | gnu/packages/openstack.scm | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 4cb38a9fc8b..62f1e84a3bf 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | (define-module (gnu packages openstack) | 21 | (define-module (gnu packages openstack) |
| 22 | #:use-module (gnu packages python) | 22 | #:use-module (gnu packages python) |
| 23 | #:use-module (gnu packages ssh) | ||
| 23 | #:use-module (gnu packages tls) | 24 | #:use-module (gnu packages tls) |
| 24 | #:use-module (gnu packages version-control) | 25 | #:use-module (gnu packages version-control) |
| 25 | #:use-module (guix build-system python) | 26 | #:use-module (guix build-system python) |
| @@ -796,12 +797,26 @@ permanence.") | |||
| 796 | (base32 | 797 | (base32 |
| 797 | "07d1jn9ryff5j5ic6qj5pbk10m1ccmpllj0wyalrcms1q9yhlzh8")))) | 798 | "07d1jn9ryff5j5ic6qj5pbk10m1ccmpllj0wyalrcms1q9yhlzh8")))) |
| 798 | (build-system python-build-system) | 799 | (build-system python-build-system) |
| 799 | (arguments `(#:tests? #f)) ; tests require a running Gerrit server | 800 | (arguments |
| 801 | '(#:tests? #f ; tests require a running Gerrit server | ||
| 802 | #:phases | ||
| 803 | (modify-phases %standard-phases | ||
| 804 | (add-after 'install 'wrap-program | ||
| 805 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 806 | (let* ((out (assoc-ref outputs "out")) | ||
| 807 | (git (assoc-ref inputs "git")) | ||
| 808 | (openssh (assoc-ref inputs "openssh"))) | ||
| 809 | (wrap-program (string-append out "/bin/git-review") | ||
| 810 | `("PATH" ":" prefix | ||
| 811 | ,(map (lambda (dir) | ||
| 812 | (string-append dir "/bin")) | ||
| 813 | (list git openssh)))))))))) | ||
| 800 | (native-inputs | 814 | (native-inputs |
| 801 | `(("python-pbr" ,python-pbr))) | 815 | `(("python-pbr" ,python-pbr))) |
| 802 | (inputs | 816 | (inputs |
| 803 | `(("python-requests" ,python-requests) | 817 | `(("python-requests" ,python-requests) |
| 804 | ("git" ,git))) | 818 | ("git" ,git) |
| 819 | ("openssh" ,openssh))) | ||
| 805 | (home-page "http://docs.openstack.org/infra/git-review/") | 820 | (home-page "http://docs.openstack.org/infra/git-review/") |
| 806 | (synopsis "Command-line tool for Gerrit") | 821 | (synopsis "Command-line tool for Gerrit") |
| 807 | (description | 822 | (description |
