Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 698 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 libusb1, 8}: 9 10stdenv.mkDerivation { 11 pname = "libuvc"; 12 version = "unstable-2020-11-29"; 13 14 src = fetchFromGitHub { 15 owner = "libuvc"; 16 repo = "libuvc"; 17 rev = "5cddef71b17d41f7e98875a840c50d9704c3d2b2"; 18 sha256 = "0kranb0x1k5qad8rwxnn1w9963sbfj2cfzdgpfmlivb04544m2j7"; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 pkg-config 24 ]; 25 26 buildInputs = [ libusb1 ]; 27 28 meta = with lib; { 29 homepage = "https://ken.tossell.net/libuvc/"; 30 description = "Cross-platform library for USB video devices"; 31 platforms = platforms.linux; 32 license = licenses.lgpl21Plus; 33 maintainers = with maintainers; [ prusnak ]; 34 }; 35}