Ricardo Wurmus <[email protected]> skribis: > Feng Shu <[email protected]> writes: > >> [email protected] (Ludovic Courtès) writes: >> >>> Currently you have to do: >>> >>> guix package -i $(guix build emacs --with-source=…/emacs-20151111.tar.gz) >>> >>> Not as convenient as one would like. I guess we could add --with-source >>> directly in ‘guix package’. >> >> I agree and suggest add a way which can override name and verison, for >> example: >> >> guix package -i emacs-snapshot --with-source=/path/to/emacs.git >> --override-name=emacs-snapshot --override-version=20151111 > > I don’t like to add override-name and override-version flags. They > don’t seem very useful. After all, every different build gets its own > directory in the store, so “override-version” seems to be useless. > > “override-name” just duplicates the package name, so I fail to see how > it would be an improvement.
Currently the name and version are inferred from the file/directory name passed to --with-source. That seemed like a simple UI, at the expense of less flexibility compared to what Feng Shu proposes. It’s always possible to do something arbitrarily complex and then use ‘guix package --install-from-file’. What’s missing though is the ability to pass --with-source to ‘guix package’. > I do agree that it would be a little nicer if we could build and install > a package from a directory, rather than just from a tarball. It’s already possible, but its name must match the package name. Thanks, Ludo’.
