Files
nix-config/packages/raspberrypi/raspberrypi-utils/default.nix
2025-12-26 22:47:11 -06:00

42 lines
1003 B
Nix

# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/libraries/libraspberrypi/default.nix#L28
# because libraspberrypi is outdated and deprecated
{
lib,
ccacheStdenv,
fetchFromGitHub,
cmake,
dtc,
}:
let
stdenv = ccacheStdenv;
in
stdenv.mkDerivation (_finalAttrs: {
pname = "raspberrypi-utils";
version = "unstable-2025-12-26";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "utils";
rev = "230d67ad28e74b17a42064453b2163991cb51a5e";
hash = "sha256-x3E8DwKKCmjxloCRB8djqNwuyrR4rok+JcNgPQ1ZH3Y=";
};
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 ];
};
})