urbit/nix/nixcrpkgs/pkgs/libusb/default.nix
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

21 lines
460 B
Nix

{ crossenv, libudev }:
let
version = "1.0.22";
name = "libusbp-${version}";
src = crossenv.nixpkgs.fetchurl {
url = "https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.tar.bz2";
sha256 = "0mw1a5ss4alg37m6bd4k44v35xwrcwp5qm4s686q1nsgkbavkbkm";
};
lib = crossenv.make_derivation {
inherit version name src;
builder = ./builder.sh;
libudev = if crossenv.os == "linux" then libudev else null;
};
in
lib