Files
nixpkgs/pkgs/by-name/pi/pigpio/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

36 lines
835 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
buildPythonPackage ? null,
}:
let
mkDerivation = if isNull buildPythonPackage then stdenv.mkDerivation else buildPythonPackage;
in
mkDerivation rec {
pname = "pigpio";
version = "79";
format = if buildPythonPackage == null then null else "setuptools";
src = fetchFromGitHub {
owner = "joan2937";
repo = "pigpio";
tag = "v${version}";
hash = "sha256-Z+SwUlBbtWtnbjTe0IghR3gIKS43ZziN0amYtmXy7HE=";
};
nativeBuildInputs = [
cmake
];
meta = {
description = "C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO)";
homepage = "https://github.com/joan2937/pigpio";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ doronbehar ];
platforms = lib.platforms.linux;
};
}