3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/firmware/raspberrypi/tools.nix

30 lines
850 B
Nix
Raw Normal View History

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