libraspberrypi: init at 2019-10-22
This commit is contained in:
parent
7ebff7cfb6
commit
985d97d785
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, cmake, pkgconfig, udev, libcec_platform }:
|
||||
{ stdenv, fetchurl, cmake, pkgconfig, udev, libcec_platform, libraspberrypi ? null }:
|
||||
|
||||
let version = "4.0.4"; in
|
||||
|
||||
@ -12,7 +12,8 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ cmake udev libcec_platform ];
|
||||
buildInputs = [ cmake udev libcec_platform ] ++
|
||||
stdenv.lib.optional (libraspberrypi != null) libraspberrypi;
|
||||
|
||||
cmakeFlags = [ "-DBUILD_SHARED_LIBS=1" ];
|
||||
|
||||
|
25
pkgs/development/libraries/libraspberrypi/default.nix
Normal file
25
pkgs/development/libraries/libraspberrypi/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ stdenv, cmake, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libraspberrypi";
|
||||
version = "2019-10-22";
|
||||
src = fetchFromGitHub {
|
||||
owner = "raspberrypi";
|
||||
repo = "userland";
|
||||
rev = "5070cb7fc150fc98f1ed64a7739c3356970d9f76";
|
||||
sha256 = "08yfzwn9s7lhrblcsxyag9p5lj5vk3n66b1pv3f7r3hah7qcggyq";
|
||||
};
|
||||
|
||||
cmakeFlags = if (stdenv.targetPlatform.system == "aarch64-linux")
|
||||
then "-DARM64=ON"
|
||||
else "-DARM64=OFF";
|
||||
preConfigure = ''cmakeFlags="$cmakeFlags -DVMCS_INSTALL_PREFIX=$out"'';
|
||||
nativeBuildInputs = [ cmake ];
|
||||
meta = with stdenv.lib; {
|
||||
description = "Userland 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 ];
|
||||
};
|
||||
}
|
@ -4512,6 +4512,8 @@ in
|
||||
|
||||
libr3 = callPackage ../development/libraries/libr3 { };
|
||||
|
||||
libraspberrypi = callPackage ../development/libraries/libraspberrypi { };
|
||||
|
||||
libsidplayfp = callPackage ../development/libraries/libsidplayfp { };
|
||||
|
||||
libspf2 = callPackage ../development/libraries/libspf2 { };
|
||||
@ -11614,7 +11616,10 @@ in
|
||||
|
||||
libcbor = callPackage ../development/libraries/libcbor { };
|
||||
|
||||
libcec = callPackage ../development/libraries/libcec { };
|
||||
libcec = callPackage ../development/libraries/libcec {
|
||||
libraspberrypi = null;
|
||||
};
|
||||
|
||||
libcec_platform = callPackage ../development/libraries/libcec/platform.nix { };
|
||||
|
||||
libcef = callPackage ../development/libraries/libcef { inherit (gnome2) GConf; };
|
||||
|
Loading…
Reference in New Issue
Block a user