2019-10-26 18:58:00 +01:00
|
|
|
{ stdenv, cmake, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-10 13:56:28 +00:00
|
|
|
pname = "libraspberrypi";
|
|
|
|
version = "unstable-2020-11-30";
|
|
|
|
|
2019-10-26 18:58:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = "userland";
|
2020-12-10 13:56:28 +00:00
|
|
|
rev = "093b30bbc2fd083d68cc3ee07e6e555c6e592d11";
|
|
|
|
sha256 = "0n2psqyxlsic9cc5s8h65g0blblw3xws4czhpbbgjm58px3822d7";
|
2019-10-26 18:58:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-12-10 13:56:28 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
(if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF")
|
|
|
|
"-DVMCS_INSTALL_PREFIX=$out"
|
|
|
|
];
|
|
|
|
|
2019-10-26 18:58:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Userland libraries for interfacing with Raspberry Pi hardware";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/raspberrypi/userland";
|
2019-10-26 18:58:00 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
|
|
|
|
maintainers = with maintainers; [ tkerber ];
|
|
|
|
};
|
|
|
|
}
|