axoloti.libusb: cleanup, format (#131684)
This commit is contained in:
parent
50d7eb059e
commit
21463560f8
|
@ -1,19 +1,19 @@
|
||||||
{ stdenv, lib, fetchurl, pkg-config, systemd ? null, libobjc, IOKit, fetchpatch }:
|
{ stdenv, lib, fetchurl, pkg-config, systemd, libobjc, IOKit, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libusb-1.0.19";
|
pname = "libusb";
|
||||||
|
version = "1.0.19";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/libusb/${name}.tar.bz2";
|
url = "mirror://sourceforge/libusb/libusb-${version}.tar.bz2";
|
||||||
sha256 = "0h38p9rxfpg9vkrbyb120i1diq57qcln82h5fr7hvy82c20jql3c";
|
sha256 = "0h38p9rxfpg9vkrbyb120i1diq57qcln82h5fr7hvy82c20jql3c";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ]; # get rid of propagating systemd closure
|
outputs = [ "out" "dev" ]; # get rid of propagating systemd closure
|
||||||
|
|
||||||
buildInputs = [ pkg-config ];
|
buildInputs = [ pkg-config ];
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs = lib.optional stdenv.isLinux systemd
|
||||||
lib.optional stdenv.isLinux systemd ++
|
++ lib.optionals stdenv.isDarwin [ libobjc IOKit ];
|
||||||
lib.optionals stdenv.isDarwin [ libobjc IOKit ];
|
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
|
@ -32,6 +32,7 @@ stdenv.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://www.libusb.info";
|
homepage = "http://www.libusb.info";
|
||||||
description = "User-space USB library";
|
description = "User-space USB library";
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue