diff options
-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 '()))) |