diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-09-26 23:06:45 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-09-26 23:06:45 +0200 |
commit | cb0d69ed160e5599e4a028597e6f6c2587bbd500 (patch) | |
tree | dfb5d28aca78de326474443a501e115b137693ba | |
parent | 1722d6800fb769804600f91a442e07903f8af00a (diff) | |
download | patches-cb0d69ed160e5599e4a028597e6f6c2587bbd500.tar patches-cb0d69ed160e5599e4a028597e6f6c2587bbd500.tar.gz |
distro: Add pkg-config.
* distro/packages/base.scm (pkg-config): New variable.
(guile-2.0): Use it.
* distro/packages/guile.scm (guile-reader): Likewise.
-rw-r--r-- | distro/packages/base.scm | 29 | ||||
-rw-r--r-- | distro/packages/guile.scm | 2 |
2 files changed, 29 insertions, 2 deletions
diff --git a/distro/packages/base.scm b/distro/packages/base.scm index cbe53999e5..49cc2d49dd 100644 --- a/distro/packages/base.scm +++ b/distro/packages/base.scm @@ -1147,6 +1147,33 @@ conversions for values passed between the two languages.") ;; See <http://github.com/atgreen/libffi/blob/master/LICENSE>. (license "free, non-copyleft")))) +(define-public pkg-config + (package + (name "pkg-config") + (version "0.27.1") + (source (origin + (method http-fetch) + (uri (string-append + "http://pkgconfig.freedesktop.org/releases/pkg-config-" + version ".tar.gz")) + (sha256 + (base32 + "05wc5nwkqz7saj2v33ydmz1y6jdg659dll4jjh91n41m63gx0qsg")))) + (build-system gnu-build-system) + (arguments `(#:configure-flags '("--with-internal-glib"))) + (home-page "http://www.freedesktop.org/wiki/Software/pkg-config") + (license "GPLv2+") + (description "a helper tool used when compiling applications and +libraries") + (long-description + "pkg-config is a helper tool used when compiling applications and +libraries. It helps you insert the correct compiler options on the +command line so an application can use gcc -o test test.c `pkg-config +--libs --cflags glib-2.0` for instance, rather than hard-coding values +on where to find glib (or other libraries). It is language-agnostic, so +it can be used for defining the location of documentation tools, for +instance."))) + (define-public guile-2.0 (package (name "guile") @@ -1159,7 +1186,7 @@ conversions for values passed between the two languages.") (base32 "000ng5qsq3cl1k35jvzvhwxj92wx4q87745n2fppkd4irh58vv5l")))) (build-system gnu-build-system) - (native-inputs `(("pkgconfig" ,(nixpkgs-derivation* "pkgconfig")))) + (native-inputs `(("pkgconfig" ,pkg-config))) (inputs `(("libffi" ,libffi) ("readline" ,readline))) diff --git a/distro/packages/guile.scm b/distro/packages/guile.scm index c72bd3b41d..8c25ee9af6 100644 --- a/distro/packages/guile.scm +++ b/distro/packages/guile.scm @@ -44,7 +44,7 @@ or 2.0." (base32 "1svlyk5pm4fsdp2g7n6qffdl6fdggxnlicj0jn9s4lxd63gzxy1n")))) (build-system gnu-build-system) - (native-inputs `(("pkgconfig" ,(nixpkgs-derivation* "pkgconfig")) + (native-inputs `(("pkgconfig" ,pkg-config) ("gperf" ,(nixpkgs-derivation* "gperf")))) (inputs `(("guile" ,guile))) (description "Guile-Reader, a simple framework for building readers for |