[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/11: gnu: Add pkgconf-as-pkg-config.
From: |
guix-commits |
Subject: |
05/11: gnu: Add pkgconf-as-pkg-config. |
Date: |
Fri, 2 Feb 2024 09:50:17 -0500 (EST) |
apteryx pushed a commit to branch wip-cu-switch-to-pkgconf
in repository guix.
commit fda244d28b254a8f89df0977a3bf88166758ef24
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jan 29 23:18:02 2024 -0500
gnu: Add pkgconf-as-pkg-config.
* gnu/packages/pkg-config.scm (pkgconf-as-pkg-config): New variable.
Change-Id: Ica85d2c248817fdf4756680cd94b0380e4a2b01f
---
gnu/packages/pkg-config.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm
index 2f07bdab9d..575666658c 100644
--- a/gnu/packages/pkg-config.scm
+++ b/gnu/packages/pkg-config.scm
@@ -198,3 +198,27 @@ provides access to most of pkgconf's functionality, to
allow other tooling
such as compilers and IDEs to discover and use libraries configured by
pkgconf.")
(license isc)))
+
+(define-public pkgconf-as-pkg-config
+ (package
+ (inherit pkgconf)
+ (name "pkgconf-as-pkg-config")
+ (build-system trivial-build-system)
+ (arguments
+ (list
+ #:builder
+ (with-imported-modules '((guix build utils))
+ #~(begin
+ (use-modules (guix build utils))
+
+ (mkdir-p (string-append #$output "/bin"))
+ (symlink (string-append #$pkgconf "/bin/pkgconf")
+ (string-append #$output "/bin/pkg-config"))
+
+ ;; Also make 'pkg.m4' available, some packages might expect it.
+ (mkdir-p (string-append #$output "/share"))
+ (symlink (string-append #$pkgconf "/share/aclocal")
+ (string-append #$output "/share/aclocal"))))))
+ (native-inputs '())
+ (inputs '())
+ (propagated-inputs '())))
- branch wip-cu-switch-to-pkgconf created (now 1ebdd93e65), guix-commits, 2024/02/02
- 02/11: gnu: Add lutok., guix-commits, 2024/02/02
- 08/11: gnu: base: Add cautionary comments for canonical-package, %final-inputs usage., guix-commits, 2024/02/02
- 07/11: gnu: pkgconf: Add support for cross-compilation., guix-commits, 2024/02/02
- 09/11: gnu: commencement: Do not export unused make-gcc-toolchain., guix-commits, 2024/02/02
- 03/11: gnu: Add kyua., guix-commits, 2024/02/02
- 05/11: gnu: Add pkgconf-as-pkg-config.,
guix-commits <=
- 06/11: gnu: pkgconf: Add $PKG_CONFIG_PATH search path., guix-commits, 2024/02/02
- 11/11: gnu: pkg-config: Alias to pkgconf-as-pkg-config., guix-commits, 2024/02/02
- 01/11: gnu: Add atf., guix-commits, 2024/02/02
- 04/11: gnu: pkgconf: Enable test suite., guix-commits, 2024/02/02
- 10/11: refresh: Import %final-inputs from (gnu packages base)., guix-commits, 2024/02/02