23 lines
411 B
Nix
23 lines
411 B
Nix
# https://github.com/nixvital/nix-based-cpp-starterkit/tree/main
|
|
{
|
|
pkgs,
|
|
stdenv,
|
|
lib,
|
|
ethercat,
|
|
}:
|
|
with pkgs;
|
|
stdenv.mkDerivation rec {
|
|
pname = "ec-controller";
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ ethercat ];
|
|
|
|
meta = with lib; {
|
|
description = "Servo controller for Screenhouse machines. Uses ethercat.";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|