2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "raspberrypi-tools";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "2020-05-28";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = "userland";
|
2020-06-18 07:06:33 +00:00
|
|
|
rev = "f97b1af1b3e653f9da2c1a3643479bfd469e3b74";
|
|
|
|
sha256 = "1r7n05rv96hqjq0rn0qzchmfqs0j7vh3p8jalgh66s6l0vms5mwy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlagsArray+=("-DVMCS_INSTALL_PREFIX=$out")
|
|
|
|
'' + stdenv.lib.optionalString stdenv.isAarch64 ''
|
|
|
|
cmakeFlagsArray+=("-DARM64=1")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Userland tools for the Raspberry Pi board";
|
|
|
|
homepage = "https://github.com/raspberrypi/userland";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
|
|
|
|
maintainers = with maintainers; [ dezgeg tavyc ];
|
|
|
|
};
|
|
|
|
}
|