Hi,

I'm packaging 'udev'. It fails with the following error:

checking for USBUTILS... no
configure: error: Package requirements (usbutils >= 0.82) were not met:

No package 'usbutils' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables USBUTILS_CFLAGS
and USBUTILS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Can I use 'set-path-environment-variable' for this purpose? How?

Nikita
;;; Guix --- Nix package management from Guile.         -*- coding: utf-8 -*-
;;; Copyright (C) 2012 Nikita Karetnikov <[email protected]>
;;;
;;; This file is part of Guix.
;;;
;;; 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.
;;;
;;; 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 Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (distro packages udev)
  #:use-module (guix licenses)
  #:use-module (distro packages acl)
  #:use-module (distro packages base)
  #:use-module (distro packages gperf)
  #:use-module (distro packages libusb)
  #:use-module (distro packages linux)
  #:use-module (distro packages pkg-config)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu))

(define-public udev
  (package
    (name "udev")
    (version "182")
    (source
     (origin
      (method url-fetch)
      (uri (string-append "mirror://kernel.org/linux/utils/kernel/hotplug/udev-"
                          version ".tar.xz"))
      (sha256
       (base32
        "1awp7p07gi083w0dwqhhbbas68a7fx2sbm1yf1ip2jwf7cpqkf5d"))))
    (build-system gnu-build-system)
    (inputs
     `(("util-linux" ,util-linux)
       ("usbutils" ,usbutils)
       ("kmod" ,kmod)
       ("libusb" ,libusb)
       ("acl" ,acl)
       ("libc" ,glibc)
       ("pkg-config" ,pkg-config)
       ("gperf" ,gperf)))
    (home-page
     "https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html";)
    (synopsis "Udev manages the /dev filesystem")
    (description
     "Udev is a device manager for the Linux kernel. It manages device
nodes in /dev. It also handles all user space actions connected with
adding and removing devices.")
    (license '(gpl2+ lgpl2.1+))))

Attachment: pgp2kzNV6eDJJ.pgp
Description: PGP signature

Reply via email to