Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, cmake, bash-completion, pkg-config, libconfig, autoreconfHook }: 2stdenv.mkDerivation { 3 pname = "libusbgx"; 4 version = "unstable-2021-10-31"; 5 src = fetchFromGitHub { 6 owner = "linux-usb-gadgets"; 7 repo = "libusbgx"; 8 rev = "060784424609d5a4e3bce8355f788c93f09802a5"; 9 sha256 = "172qh8gva17jr18ldhf9zi960w2bqzmp030w6apxq57c9nv6d8k7"; 10 }; 11 nativeBuildInputs = [ autoreconfHook pkg-config ]; 12 buildInputs = [ libconfig ]; 13 meta = { 14 description = "C library encapsulating the kernel USB gadget-configfs userspace API functionality"; 15 license = with lib.licenses; [ 16 lgpl21Plus # library 17 gpl2Plus # examples 18 ]; 19 maintainers = with lib.maintainers; [ lheckemann ]; 20 platforms = lib.platforms.linux; 21 }; 22}