hackens-org-configurations/machines/agb02/agb/default.nix

16 lines
291 B
Nix
Raw Normal View History

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
'';
}