libraspberrypi: 2020-05-28 -> 2020-11-30
This commit is contained in:
parent
979a1e109f
commit
65172da27e
@ -1,20 +1,22 @@
|
|||||||
{ stdenv, cmake, fetchFromGitHub }:
|
{ stdenv, cmake, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libraspberrypi";
|
pname = "libraspberrypi";
|
||||||
version = "2020-05-28";
|
version = "unstable-2020-11-30";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "raspberrypi";
|
owner = "raspberrypi";
|
||||||
repo = "userland";
|
repo = "userland";
|
||||||
rev = "f97b1af1b3e653f9da2c1a3643479bfd469e3b74";
|
rev = "093b30bbc2fd083d68cc3ee07e6e555c6e592d11";
|
||||||
sha256 = "1r7n05rv96hqjq0rn0qzchmfqs0j7vh3p8jalgh66s6l0vms5mwy";
|
sha256 = "0n2psqyxlsic9cc5s8h65g0blblw3xws4czhpbbgjm58px3822d7";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = if (stdenv.targetPlatform.system == "aarch64-linux")
|
|
||||||
then "-DARM64=ON"
|
|
||||||
else "-DARM64=OFF";
|
|
||||||
preConfigure = ''cmakeFlags="$cmakeFlags -DVMCS_INSTALL_PREFIX=$out"'';
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
cmakeFlags = [
|
||||||
|
(if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF")
|
||||||
|
"-DVMCS_INSTALL_PREFIX=$out"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Userland libraries for interfacing with Raspberry Pi hardware";
|
description = "Userland libraries for interfacing with Raspberry Pi hardware";
|
||||||
homepage = "https://github.com/raspberrypi/userland";
|
homepage = "https://github.com/raspberrypi/userland";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user