43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/libraries/libraspberrypi/default.nix#L28
|
|
# because libraspberrypi is outdated and deprecated
|
|
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
dtc,
|
|
namespace,
|
|
pkgs,
|
|
}:
|
|
let
|
|
inherit (lib.trivial) importJSON;
|
|
inherit (lib.${namespace}) selectVariant mkAllSources;
|
|
|
|
versionSpec = importJSON ./version.json;
|
|
selected = selectVariant versionSpec null null;
|
|
sources = mkAllSources pkgs selected;
|
|
in
|
|
stdenv.mkDerivation (_finalAttrs: {
|
|
pname = "raspberrypi-utils";
|
|
version = "unstable-2025-12-26";
|
|
|
|
src = sources.utils;
|
|
|
|
buildInputs = [
|
|
dtc # dtmerge depends on libfdt
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
meta = with lib; {
|
|
description = "A collection of scripts and simple applications for Raspberry Pi hardware";
|
|
homepage = "https://github.com/raspberrypi/utils";
|
|
license = licenses.bsd3;
|
|
platforms = [
|
|
"armv6l-linux"
|
|
"armv7l-linux"
|
|
"aarch64-linux"
|
|
];
|
|
maintainers = with maintainers; [ kazenyuk ];
|
|
};
|
|
})
|