2018-04-02 21:19:20 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig }:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "raspberrypi-tools";
|
2020-06-06 10:46:57 +01:00
|
|
|
version = "2020-05-28";
|
2018-04-02 21:19:20 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = "userland";
|
2020-06-06 10:46:57 +01:00
|
|
|
rev = "f97b1af1b3e653f9da2c1a3643479bfd469e3b74";
|
|
|
|
sha256 = "1r7n05rv96hqjq0rn0qzchmfqs0j7vh3p8jalgh66s6l0vms5mwy";
|
2018-04-02 21:19:20 +01: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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/raspberrypi/userland";
|
2018-04-02 21:19:20 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
|
2018-07-22 20:50:19 +01:00
|
|
|
maintainers = with maintainers; [ dezgeg tavyc ];
|
2018-04-02 21:19:20 +01:00
|
|
|
};
|
|
|
|
}
|