1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: Add pkgconf-as-pkg-config.

* gnu/packages/pkg-config.scm (pkgconf-as-pkg-config): New variable.

Change-Id: If9ff93dbebde0c0d955cbe87af72e963913a6f45
This commit is contained in:
Maxim Cournoyer
2026-03-24 13:33:19 +09:00
parent 862fdaae31
commit 7473b051b6

View File

@@ -205,3 +205,28 @@ 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 gnu-build-system)
(arguments
(list
#:tests? #f
#:phases
#~(modify-phases %standard-phases
(delete 'configure)
(delete 'build)
(replace 'install
(lambda* (#:key inputs #:allow-other-keys)
(let ((pkgconf (search-input-file inputs "bin/pkgconf")))
(mkdir-p (string-append #$output "/bin"))
(symlink 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 (dirname (dirname pkgconf))
"/share/aclocal")
(string-append #$output "/share/aclocal"))))))))
(native-inputs '())
(inputs (list pkgconf))
(propagated-inputs '())))