Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
918 B
Nix
42 lines
918 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
libusb1,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "libuvc";
|
|
version = "unstable-2020-11-29";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libuvc";
|
|
repo = "libuvc";
|
|
rev = "5cddef71b17d41f7e98875a840c50d9704c3d2b2";
|
|
sha256 = "0kranb0x1k5qad8rwxnn1w9963sbfj2cfzdgpfmlivb04544m2j7";
|
|
};
|
|
|
|
# Upstream doesn't yet support CMake 4, remove once fixed
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail "cmake_minimum_required(VERSION 3.1)" "cmake_minimum_required(VERSION 3.5)"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://ken.tossell.net/libuvc/";
|
|
description = "Cross-platform library for USB video devices";
|
|
platforms = platforms.linux;
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ prusnak ];
|
|
};
|
|
}
|