8 , gobject-introspection
20 pythonEnv = python3.pythonOnBuildForHost.withPackages (ps: with ps; [
24 stdenv.mkDerivation rec {
28 outputs = [ "bin" "out" "dev" "devdoc" ];
30 src = fetchFromGitHub {
33 rev = "refs/tags/${version}";
34 hash = "sha256-xhWx45uOh8Yokd3/32CQ6tsdkgGaYUOvaylrq/jmoP0=";
39 src = ./fix-python-path.patch;
40 python = "${pythonEnv}/bin/python3";
59 # all required in gusb.pc
60 propagatedBuildInputs = [
67 (lib.mesonBool "tests" doCheck)
68 (lib.mesonOption "usb_ids" "${hwdata}/share/hwdata/usb.ids")
75 doCheck = false; # tests try to access USB
78 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
79 ls -la "$out/share/doc"
80 moveToOutput "share/doc" "$devdoc"
84 description = "GLib libusb wrapper";
85 homepage = "https://github.com/hughsie/libgusb";
86 license = licenses.lgpl21;
87 maintainers = [ maintainers.marcweber ];
88 platforms = platforms.unix;