at 24.05-pre 34 lines 1.1 kB view raw
1{ lib, stdenv 2, fetchFromGitHub 3, fetchpatch 4, cmake 5, pkg-config 6}: 7 8stdenv.mkDerivation rec { 9 pname = "libraspberrypi"; 10 version = "unstable-2022-06-16"; 11 12 src = fetchFromGitHub { 13 owner = "raspberrypi"; 14 repo = "userland"; 15 rev = "54fd97ae4066a10b6b02089bc769ceed328737e0"; 16 hash = "sha512-f7tBgIykcIdkwcFjBKk5ooD/5Bsyrd/0OFr7LNCwWFYeE4DH3XA7UR7YjArkwqUVCVBByr82EOaacw0g1blOkw=="; 17 }; 18 19 nativeBuildInputs = [ cmake pkg-config ]; 20 cmakeFlags = [ 21 # -DARM64=ON disables all targets that only build on 32-bit ARM; this allows 22 # the package to build on aarch64 and other architectures 23 "-DARM64=${if stdenv.hostPlatform.isAarch32 then "OFF" else "ON"}" 24 "-DVMCS_INSTALL_PREFIX=${placeholder "out"}" 25 ]; 26 27 meta = with lib; { 28 description = "Userland tools & libraries for interfacing with Raspberry Pi hardware"; 29 homepage = "https://github.com/raspberrypi/userland"; 30 license = licenses.bsd3; 31 platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" "x86_64-linux" ]; 32 maintainers = with maintainers; [ dezgeg tkerber ]; 33 }; 34}