Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
848 B
Nix
Raw Permalink Normal View History

2023-04-20 11:53:57 +03:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
buildPythonPackage ? null,
}:
let
mkDerivation =
if builtins.isNull buildPythonPackage then stdenv.mkDerivation else buildPythonPackage;
in
mkDerivation rec {
pname = "pigpio";
version = "79";
format = if buildPythonPackage == null then null else "setuptools";
2023-04-20 11:53:57 +03:00
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";
2025-06-13 10:01:52 +03:00
license = lib.licenses.unlicense;
2023-04-20 11:53:57 +03:00
maintainers = with lib.maintainers; [ doronbehar ];
platforms = lib.platforms.linux;
};
}