2024-10-13 10:42:30 +02:00
|
|
|
{ stdenv, libgpiod }:
|
2024-10-12 00:40:55 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "agb";
|
|
|
|
version = "oct-24";
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
g++ --std=c++23 agb.cpp -o agb \
|
|
|
|
-L${libgpiod}/lib -lgpiodcxx -I${libgpiod}/include \
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp agb $out/bin
|
|
|
|
'';
|
|
|
|
}
|