Run cmake-init and setup flake.nix and default.nix
This commit is contained in:
20
default.nix
Normal file
20
default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user