[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] scripts: package: Add --install-from-file option.
From: |
Alex Kost |
Subject: |
Re: [PATCH] scripts: package: Add --install-from-file option. |
Date: |
Mon, 10 Aug 2015 17:22:50 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
David Thompson (2015-08-09 18:59 +0300) wrote:
> In my personal projects, I keep a 'package.scm' file in the root of the
> source tree for use with 'guix environment -l'. However, it's also
> handy to install that package by using 'guix package -e':
>
> guix package -e '(primitive-load "package.scm")'
>
> This patch adds a shorthand for this:
>
> guix package -f package.scm
>
> The motivation for this is to ultimately encourage other people to keep
> a 'package.scm' file in their own repos for building reproducible
> development environments and easily testing development snapshots, like
> what we do with our 'guix-devel' package.
>
> I'd like to add the same option for 'guix build', if this is approved.
I agree that it will be easy for users than -e option.
And I'm also for adding --from-file option to 'guix build'. Thank you.
[...]
> address@hidden
> +(use-modules (guix packages)
> + (guix download)
> + (guix build-system gnu)
> + (guix licenses))
(gnu packages gawk) module should also be put there, as the package uses
'gawk' input.
> +(package
> + (name "hello")
> + (version "2.8")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append "mirror://gnu/hello/hello-" version
> + ".tar.gz"))
> + (sha256
> + (base32
> "0wqd8sjmxfskrflaxywc7gqw7sfawrfvdxd9skxawzfgyy0pzdz6"))))
> + (build-system gnu-build-system)
> + (arguments `(#:configure-flags '("--enable-silent-rules")))
> + (inputs `(("gawk" ,gawk)))
> + (synopsis "Hello, GNU world: An example GNU package")
> + (description "Guess what GNU Hello prints!")
> + (home-page "http://www.gnu.org/software/hello/")
> + (license gpl3+))
> address@hidden example
--
Alex