nixpkgs/pkgs/development/libraries/gusb/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

45 lines
1.1 KiB
Nix

{ stdenv, fetchurl, meson, ninja, pkg-config, gettext, gobject-introspection
, gtk-doc, docbook_xsl, docbook_xml_dtd_412, docbook_xml_dtd_44, python3
, glib, systemd, libusb1, vala, hwdata
}:
let
pythonEnv = python3.withPackages(ps: with ps; [
setuptools
]);
in
stdenv.mkDerivation rec {
pname = "gusb";
version = "0.3.5";
outputs = [ "bin" "out" "dev" "devdoc" ];
src = fetchurl {
url = "https://people.freedesktop.org/~hughsient/releases/libgusb-${version}.tar.xz";
sha256 = "1pv5ivbwxb9anq2j34i68r8fgs8nwsi4hmss7h9v1i3wk7300ajv";
};
nativeBuildInputs = [
meson ninja pkg-config gettext pythonEnv
gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_44
gobject-introspection vala
];
buildInputs = [ systemd glib ];
propagatedBuildInputs = [ libusb1 ];
mesonFlags = [
"-Dusb_ids=${hwdata}/share/hwdata/usb.ids"
];
doCheck = false; # tests try to access USB
meta = with stdenv.lib; {
description = "GLib libusb wrapper";
homepage = "https://github.com/hughsie/libgusb";
license = licenses.lgpl21;
maintainers = [ maintainers.marcweber ];
platforms = platforms.unix;
};
}