From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: How can I add a package outside the guix source dir? Date: Fri, 22 May 2015 16:37:41 +0800 Message-ID: <87oaldvwh6.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvid9-0000Cl-5l for guix-devel@gnu.org; Fri, 22 May 2015 04:48:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvid3-0007Rq-Pd for guix-devel@gnu.org; Fri, 22 May 2015 04:48:35 -0400 Received: from m50-133.163.com ([123.125.50.133]:53755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvid3-0007RF-3A for guix-devel@gnu.org; Fri, 22 May 2015 04:48:29 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix Cc: Feng Shu I want to add a package which will used by myself, for example: I don't want to put it to guix source dir, How can I solve the problem? #+BEGIN_COMMENT (define-public emacs-snapshot (package (inherit emacs) (name "emacs-snapshot") (version "20150522.9e41e0b") (source (origin (method git-fetch) (uri (git-reference (url "/home/feng/project/emacs") (commit "9e41e0bc6a6fdb7a01841db62d8de42d67be534a"))) (sha256 (base32 "1p50nrmwnx1d6an7daz8fxkj6ylxml7g23b996ba837nlfz3l8ay")))) (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake) ,@(package-native-inputs emacs))) (arguments (substitute-keyword-arguments `(;; Build fails if we allow parallel build. #:parallel-build? #f ;; Tests aren't passing for now. #:tests? #f ,@(package-arguments emacs)) ((#:phases phases) `(modify-phases ,phases (add-after 'unpack 'autogen (lambda _ (zero? (system* "sh" "autogen.sh")))))))))) #+END_COMMENT --