[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simple configure-make-make_install with Guix
From: |
Julien Lepiller |
Subject: |
Re: Simple configure-make-make_install with Guix |
Date: |
Thu, 24 May 2018 21:53:36 +0200 |
Le Thu, 24 May 2018 22:48:48 +0000,
Jone <address@hidden> a écrit :
> Hello! I'm wondering, how could I operate with unpacked sources?
> So far I see only this:
>
> guix build -f /home/jone/Desktop/template.scm
> guix build: error: #<unspecified>: not something we can build
Hi Jone,
your file should evaluate to a package, not simply define it.
http://www.gnu.org/software/guix/manual/html_node/Additional-Build-Options.html#Additional-Build-Options
has an example for how to use -f. In your case, adding gvolwheel at the
end of the file should work too. Also, you don't need guix' sources for
that.
>
> Files:
> 1. template.scm
> (use-modules
> (ice-9 match)
> (srfi srfi-1)
> (guix gexp)
> (guix licenses)
> (guix build-system gnu)
> (guix packages)
> (gnu packages)
> (gnu packages glib)
> (gnu packages gtk)
> (gnu packages audio))
> (define-public gvolwheel
> (package
> (name "gvolwheel")
> (version "-1.0")
> (source (local-file "/home/jone/Desktop/gvolwheel-1.0"
> #:recursive? #t)) (build-system gnu-build-system)
> (native-inputs
> `(("pkg-config" ,pkg-config)))
> (inputs
> `(("alsa-lib" ,alsa-lib)
> ("gtk+" ,gtk+)))
> (synopsis "test")
> (description "test")
> (home-page "https://sourceforge.net/projects/gvolwheel")
> (license gpl2)))
>
> 2. ls -1 .
> aclocal.m4
> AUTHORS
> ChangeLog
> config.guess
> config.h.in
> config.sub
> configure
> configure.ac
> COPYING
> depcomp
> INSTALL
> install-sh
> ltmain.sh
> Makefile.am
> Makefile.in
> missing
> mkinstalldirs
> NEWS
> pixmaps
> po
> README
> src
>
> This is just an example (a little harder than "GNU Hello"). I would
> like to learn to build such things.