;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . ;; Build Guix using Guix. (use-modules (srfi srfi-26)) ;; Add ~/.config/guix/current to the search path. (eval-when (expand load eval) (and=> (or (getenv "XDG_CONFIG_HOME") (and=> (getenv "HOME") (cut string-append <> "/.config/guix/current"))) (lambda (current) (set! %load-path (cons (string-append current "/share/guile/site/" (effective-version)) %load-path)) (set! %load-compiled-path (cons (string-append current "/lib/guile/" (effective-version) "/site-ccache") %load-compiled-path))))) (use-modules (guix) (guix ui) (guix git-download) (ice-9 match)) (match (command-line) ((program source) (with-error-handling (with-store store (let* ((script (string-append source "/build-aux/build-self.scm")) (build (primitive-load script)) (git? (git-predicate source))) (run-with-store store ;; TODO: Extract #:version and #:commit using Guile-Git. (mlet* %store-monad ((source (interned-file source "guix-source" #:select? git? #:recursive? #t)) (drv (build source #:pull-version 1))) (mbegin %store-monad (show-what-to-build* (list drv)) (built-derivations (list drv)) (with-monad %store-monad (display (derivation->output-path drv)) (newline) (return drv)))))))))) '>AgeCommit message (Expand)Author 2024-08-31gnu: Avoid cycle involving (gnu packages pkg-config)....Fixes a regression introduced in 7a26aee61bbbd8e37745ce13433545333eac4505 whereby (gnu packages pkg-config) would be caught in a cycle, leading to miscompilation of package modules, in turn leading to failure to compute the Guix derivation with exceptions like: 1. &package-input-error: package: #<package libgc@8.2.4 7fee96c4dc60> input: ("_" #<syntax-transformer pkg-config>) * gnu/packages/pkg-config.scm: Autoload (gnu packages check). Change-Id: I624e701a0c411b6f3d9ad5e10dca6ad7cf552be4 Ludovic Courtès 2024-08-31gnu: pkgconf: Add $PKG_CONFIG_PATH search path....* gnu/packages/pkg-config.scm (%pkgconf) [native-search-paths]: Add $PKG_CONFIG_PATH. Change-Id: I6c5c20ca26a3cf21c16eb24747c250ba432a276d Maxim Cournoyer 2024-08-31gnu: pkgconf: Enable test suite....* gnu/packages/pkg-config.scm (pkgconf) [arguments]: Remove #:tests? argument. Add a set-HOME phase. [native-inputs]: Add atf and kyua. Change-Id: I28410d7486ab45cf1cbc6d306345fb85f0b9d7fc Maxim Cournoyer 2024-08-31gnu: pkgconf: Update to 2.1.0....* gnu/packages/pkg-config.scm (pkgconf): Update to 2.1.0. Change-Id: I5d61cd792ea89bc05a590997a3c8ed5243a57adc Maxim Cournoyer