[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'. |
Date: |
Sat, 03 Oct 2015 22:35:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Alex Kost <address@hidden> skribis:
> * emacs/guix-devel.el (guix-devel-setup-repl): Use (guix packages) module.
> (guix-devel-download-package-source): New command.
> (guix-devel-keys-map): Add key binding for it.
> * doc/emacs.texi (Emacs Development): Document it.
[...]
> +(defun guix-devel-download-package-source ()
> + "Download the source of the current package.
> +Use this function to compute SHA256 hash of the package source."
> + (interactive)
> + (guix-devel-with-definition def
> + (guix-devel-use-modules "(guix scripts download)")
> + (when (or (not guix-operation-confirm)
> + (y-or-n-p (format "Download '%s' package source?" def)))
> + (guix-geiser-eval-in-repl
> + (format "(guix-download (origin-uri (package-source %s)))"
> + def)))))
What about instead building the ‘package-source-derivation’ of the
package? That way, that would do the exact same thing as ‘guix build
-S’ and would work not only with ‘url-fetch’ but also with the other
things.
WDYT?
Thanks,
Ludo’.
- emacs: devel: Add lint/download commands., Alex Kost, 2015/10/08
- [PATCH 3/4] lint: Export 'run-checkers'., Alex Kost, 2015/10/08
- [PATCH 4/4] emacs: Add 'guix-devel-lint-package', Alex Kost, 2015/10/08
- [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Alex Kost, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'.,
Ludovic Courtès <=
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Alex Kost, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Ludovic Courtès, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Alex Kost, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Ludovic Courtès, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Alex Kost, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Ludovic Courtès, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Alex Kost, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Ian Denhardt, 2015/10/08
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Alex Kost, 2015/10/09
- Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'., Ludovic Courtès, 2015/10/08