Unverified Commit fe9c50a9 authored by GiggleSquid's avatar GiggleSquid
Browse files

libraspberrypi: 0-unstable-2022-06-16 -> 0-unstable-2024-12-23

parent 0a8a851e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -8,24 +8,26 @@

stdenv.mkDerivation {
  pname = "libraspberrypi";
  version = "0-unstable-2022-06-16";
  version = "0-unstable-2024-12-23";

  src = fetchFromGitHub {
    owner = "raspberrypi";
    repo = "userland";
    rev = "54fd97ae4066a10b6b02089bc769ceed328737e0";
    hash = "sha512-f7tBgIykcIdkwcFjBKk5ooD/5Bsyrd/0OFr7LNCwWFYeE4DH3XA7UR7YjArkwqUVCVBByr82EOaacw0g1blOkw==";
    rev = "a54a0dbb2b8dcf9bafdddfc9a9374fb51d97e976";
    hash = "sha256-Edca6nkykdXKFF5MGq6LeKirMLHTZBCbFWvHTNHMWJ4=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  cmakeFlags = [
    # -DARM64=ON disables all targets that only build on 32-bit ARM; this allows
    # the package to build on aarch64 and other architectures
    "-DARM64=${if stdenv.hostPlatform.isAarch32 then "OFF" else "ON"}"
    "-DVMCS_INSTALL_PREFIX=${placeholder "out"}"
    (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10")
  ];

  meta = with lib; {