diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-03-24 13:33:19 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-04-05 10:25:16 +0900 |
| commit | 7473b051b6dacfd506e0cfacf481dbe17c2a65e7 (patch) | |
| tree | e3588ae8f5eabed8c0cc130943f155c277ff68f0 /gnu | |
| parent | 862fdaae310a99f375b9ead1c9568cf8c535fe46 (diff) | |
gnu: Add pkgconf-as-pkg-config.
* gnu/packages/pkg-config.scm (pkgconf-as-pkg-config): New variable.
Change-Id: If9ff93dbebde0c0d955cbe87af72e963913a6f45
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/pkg-config.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm index af42938a4b7..9461c03e21c 100644 --- a/gnu/packages/pkg-config.scm +++ b/gnu/packages/pkg-config.scm @@ -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 '()))) |
