uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
51
pkgs/development/libraries/gusb/default.nix
Normal file
51
pkgs/development/libraries/gusb/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, stdenv, fetchurl, substituteAll, 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.10";
|
||||
|
||||
outputs = [ "bin" "out" "dev" "devdoc" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://people.freedesktop.org/~hughsient/releases/libgusb-${version}.tar.xz";
|
||||
sha256 = "sha256-DrC5qw+LugxZYxyAnDe2Fu806zyOAAsLm3HPEeSTG9w=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-python-path.patch;
|
||||
python = "${pythonEnv}/bin/python3";
|
||||
})
|
||||
];
|
||||
|
||||
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 lib; {
|
||||
description = "GLib libusb wrapper";
|
||||
homepage = "https://github.com/hughsie/libgusb";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = [ maintainers.marcweber ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue