;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Julien Lepiller ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (more packages android) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (gnu packages android) #:use-module (gnu packages xml)) (define-public fdroidserver-git (package (inherit fdroidserver) (name (package-name fdroidserver)) (version "git") (source (origin (method git-fetch) (uri (git-reference (url "https://gitlab.com/fdroid/fdroidserver.git") (commit "7272689cedb4b5f0d9211f1e5b808a655e26cd5c"))) (file-name (git-file-name name version)) (sha256 (base32 "155vfxhm0r82l5n5zq2087wjrhkppay705sg9lwh3hv5rflz1ycp")))) (arguments (substitute-keyword-arguments (package-arguments fdroidserver) ((#:phases phases) `(modify-phases ,phases (add-after 'build 'compile-catalog (lambda _ (invoke "python" "setup.py" "compile_catalog") #t)) (add-after 'install 'install-scripts (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (site (string-append out "/lib/python3.7/site-packages"))) (for-each (lambda (script) (install-file script site)) '("gradlew-fdroid" "jenkins-build-all" "jenkins-setup-build-environment" "jenkins-test" "makebuildserver"))) #t)))))) (native-inputs `(("python-defusedxml" ,python-defusedxml) ,@(package-native-inputs fdroidserver)))))