fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib, stdenv
2, fetchFromGitHub
3, fetchpatch
4, cmake
5, pkg-config
6}:
7
8stdenv.mkDerivation rec {
9 pname = "libraspberrypi";
10 version = "unstable-2021-06-23";
11
12 src = fetchFromGitHub {
13 owner = "raspberrypi";
14 repo = "userland";
15 rev = "97bc8180ad682b004ea224d1db7b8e108eda4397";
16 sha256 = "0cnjc7w8ynayj90vlpl13xzm9izd8m5b4cvrq52si9vc6wlm4in5";
17 };
18
19 patches = [
20 (fetchpatch {
21 # https://github.com/raspberrypi/userland/pull/670
22 url = "https://github.com/raspberrypi/userland/commit/37cb44f314ab1209fe2a0a2449ef78893b1e5f62.patch";
23 sha256 = "1fbrbkpc4cc010ji8z4ll63g17n6jl67kdy62m74bhlxn72gg9rw";
24 })
25 ];
26
27 nativeBuildInputs = [ cmake pkg-config ];
28 cmakeFlags = [
29 (if (stdenv.hostPlatform.isAarch64) then "-DARM64=ON" else "-DARM64=OFF")
30 "-DVMCS_INSTALL_PREFIX=${placeholder "out"}"
31 ];
32
33 meta = with lib; {
34 description = "Userland tools & libraries for interfacing with Raspberry Pi hardware";
35 homepage = "https://github.com/raspberrypi/userland";
36 license = licenses.bsd3;
37 platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" "x86_64-linux" ];
38 maintainers = with maintainers; [ dezgeg tkerber ];
39 };
40}