Add flake

This commit is contained in:
2023-08-16 09:01:44 +03:00
parent 60d331434c
commit d8f55ac281

13
flake.nix Normal file
View File

@@ -0,0 +1,13 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
let
kernel = nixpkgs.linuxPackages_latest;
in
flake-utils.lib.eachDefaultSystem (system: {
packages.${system}.ethercat = (import ./ethercat.nix) { inherit kernel; };
});
}