Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 76 lines 1.4 kB view raw
1{ stdenv 2, fetchgit 3, lib 4, meson 5, ninja 6, pkg-config 7, boost 8, gnutls 9, openssl 10, libevent 11, lttng-ust 12, gst_all_1 13, gtest 14, graphviz 15, doxygen 16, python3 17, python3Packages 18}: 19 20stdenv.mkDerivation { 21 pname = "libcamera"; 22 version = "unstable-2021-09-24"; 23 24 src = fetchgit { 25 url = "https://git.libcamera.org/libcamera/libcamera.git"; 26 rev = "40f5fddca7f774944a53f58eeaebc4db79c373d8"; 27 sha256 = "0jklgdv5ma4nszxibms5lkf5d2ips7ncynwa1flglrhl5bl4wkzz"; 28 }; 29 30 postPatch = '' 31 patchShebangs utils/ 32 ''; 33 34 buildInputs = [ 35 # IPA and signing 36 gnutls 37 openssl 38 boost 39 40 # gstreamer integration 41 gst_all_1.gstreamer 42 gst_all_1.gst-plugins-base 43 44 # cam integration 45 libevent 46 47 # lttng tracing 48 lttng-ust 49 ]; 50 51 nativeBuildInputs = [ 52 meson 53 ninja 54 pkg-config 55 python3 56 python3Packages.jinja2 57 python3Packages.pyyaml 58 python3Packages.ply 59 python3Packages.sphinx 60 gtest 61 graphviz 62 doxygen 63 ]; 64 65 mesonFlags = [ "-Dv4l2=true" "-Dqcam=disabled" ]; 66 67 # Fixes error on a deprecated declaration 68 NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 69 70 meta = with lib; { 71 description = "An open source camera stack and framework for Linux, Android, and ChromeOS"; 72 homepage = "https://libcamera.org"; 73 license = licenses.lgpl2Plus; 74 maintainers = with maintainers; [ citadelcore ]; 75 }; 76}