Files
ec-controller/flake.nix

22 lines
689 B
Nix

{
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
etherlab.url = "git+https://git.dripco.eu/nic/etherlab-nix";
};
outputs = { self, nixpkgs, flake-utils, etherlab, ... }:
flake-utils.lib.eachSystem [
"x86_64-linux" "i686-linux" "aarch64-linux"
] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
kernel = pkgs.linux_latest;
ethercat = etherlab.packages.${system}.ethercat;
in
{
packages.default = pkgs.callPackage ./default.nix { inherit ethercat; };
packages.ec-controller = pkgs.callPackage ./default.nix { inherit ethercat; };
}
);
}