Run cmake-init and setup flake.nix and default.nix

This commit is contained in:
2023-08-15 15:58:43 +03:00
parent 40684d900b
commit 5745001064
35 changed files with 1562 additions and 1 deletions

20
default.nix Normal file
View File

@@ -0,0 +1,20 @@
# 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";
nativeBuildInputs = [ cmake ];
buildInputs = [ ethercat ];
meta = with lib; {
description = "Servo controller for Screenhouse machines. Uses ethercat.";
platforms = platforms.linux;
};
}