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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libraspberrypi";
|
pname = "libraspberrypi";
|
||||||
@ -11,17 +16,25 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0n2psqyxlsic9cc5s8h65g0blblw3xws4czhpbbgjm58px3822d7";
|
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 = [
|
cmakeFlags = [
|
||||||
(if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF")
|
(if (stdenv.targetPlatform.system == "aarch64-linux") then "-DARM64=ON" else "-DARM64=OFF")
|
||||||
"-DVMCS_INSTALL_PREFIX=$out"
|
"-DVMCS_INSTALL_PREFIX=$out"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
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";
|
homepage = "https://github.com/raspberrypi/userland";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
|
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" "x86_64-linux" ];
|
||||||
maintainers = with maintainers; [ tkerber ];
|
maintainers = with maintainers; [ dezgeg tavyc tkerber ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user