diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-01-29 23:18:02 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-01-31 23:18:57 -0500 |
commit | fda244d28b254a8f89df0977a3bf88166758ef24 (patch) | |
tree | 2b177a3ba137d1cf5b91663eaa8bffe346f08cd8 | |
parent | 4e7c8bc20ab0bceb1a013af8e2b4a60cbfc15304 (diff) |
gnu: Add pkgconf-as-pkg-config.
* gnu/packages/pkg-config.scm (pkgconf-as-pkg-config): New variable.
Change-Id: Ica85d2c248817fdf4756680cd94b0380e4a2b01f
-rw-r--r-- | gnu/packages/pkg-config.scm | 24 |
1 files changed, 24 insertions, 0 deletions
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 '()))) |