unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How can I add a package outside the guix source dir?
@ 2015-05-22  8:37 Feng Shu
  2015-05-22  9:01 ` Taylan Ulrich Bayırlı/Kammer
  2015-05-22  9:01 ` Ricardo Wurmus
  0 siblings, 2 replies; 6+ messages in thread
From: Feng Shu @ 2015-05-22  8:37 UTC (permalink / raw)
  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



-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-22 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-22  8:37 How can I add a package outside the guix source dir? Feng Shu
2015-05-22  9:01 ` Taylan Ulrich Bayırlı/Kammer
2015-05-22 11:05   ` Feng Shu
2015-05-22 11:56     ` 宋文武
2015-05-22 14:22       ` Ludovic Courtès
2015-05-22  9:01 ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).