mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
pigpio: init at 79
This commit is contained in:
parent
caed1d82a4
commit
22162d223e
1 changed files with 35 additions and 0 deletions
35
pkgs/by-name/pi/pigpio/package.nix
Normal file
35
pkgs/by-name/pi/pigpio/package.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
buildPythonPackage ? null,
|
||||
}:
|
||||
|
||||
let
|
||||
mkDerivation =
|
||||
if builtins.isNull buildPythonPackage then stdenv.mkDerivation else buildPythonPackage;
|
||||
in
|
||||
mkDerivation rec {
|
||||
pname = "pigpio";
|
||||
version = "79";
|
||||
|
||||
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 = with lib.licenses; [ unlicense ];
|
||||
maintainers = with lib.maintainers; [ doronbehar ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue