libraspberrypi: merge with raspberrypi-tools
This commit is contained in:
parent
65172da27e
commit
3f64a4e432
|
@ -1,4 +1,9 @@
|
|||
{ stdenv, cmake, fetchFromGitHub }:
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libraspberrypi";
|
||||
|
@ -11,17 +16,25 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0n2psqyxlsic9cc5s8h65g0blblw3xws4czhpbbgjm58px3822d7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# https://github.com/raspberrypi/userland/pull/670
|
||||
url = "https://github.com/raspberrypi/userland/pull/670/commits/37cb44f314ab1209fe2a0a2449ef78893b1e5f62.patch";
|
||||
sha256 = "1fbrbkpc4cc010ji8z4ll63g17n6jl67kdy62m74bhlxn72gg9rw";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
cmakeFlags = [
|
||||
(if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF")
|
||||
"-DVMCS_INSTALL_PREFIX=$out"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Userland libraries for interfacing with Raspberry Pi hardware";
|
||||
description = "Userland tools & libraries for interfacing with Raspberry Pi hardware";
|
||||
homepage = "https://github.com/raspberrypi/userland";
|
||||
license = licenses.bsd3;
|
||||
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
|
||||
maintainers = with maintainers; [ tkerber ];
|
||||
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" "x86_64-linux" ];
|
||||
maintainers = with maintainers; [ dezgeg tavyc tkerber ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue