l...@gnu.org (Ludovic Courtès) writes: > Hi, > > "Feng Shu" <tuma...@163.com> skribis: > >> I use the following exp to build a new version you-get >> >> #+BEGIN_COMMENT >> scheme@(guile-user)> ,run-in-store (build-package you-get #:use-substitutes? >> #t #:dry-run? #f) >> #+END_COMMENT >> >> How to install this new vesion of you-get in guile? > > You’d first need to build a profile that contains you-get, using the API > in (guix profiles): > > scheme@(guile-user)> ,use(guix) > scheme@(guile-user)> ,use(gnu) > scheme@(guile-user)> ,use(guix profiles) > scheme@(guile-user)> (packages->manifest (list (specification->package > "you-get"))) > $13 = #<<manifest> entries: (#<<manifest-entry> name: "you-get" > version: "0.4.775" output: "out" item: #<package you-get@0.4.775 > gnu/packages/video.scm:1239 1529d80> dependencies: () search-paths: () > parent: #<promise #<procedure 7feced850c18 at guix/profiles.scm:276:48 > ()>>>)> > scheme@(guile-user)> ,run-in-store (profile-derivation $13) > …
(packages-manifest (list you-get)) seem to work too. > > The rest (setting up the symlink) is a little less convenient though. > See (guix scripts package) or the equivalent Emacs-Guix code for how > this works. > (build-and-use-profile store "~/.guix-profile" $2) How can I get the "store"? > HTH! > > Ludo’. > --