Import ethercat from git repo
This commit is contained in:
@@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||||||
pname = "ec-controller";
|
pname = "ec-controller";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ ethercat ];
|
buildInputs = [ ethercat ];
|
||||||
|
|
||||||
|
|||||||
17
flake.nix
17
flake.nix
@@ -5,8 +5,17 @@
|
|||||||
etherlab.url = "git+https://git.dripco.eu/nic/etherlab-nix";
|
etherlab.url = "git+https://git.dripco.eu/nic/etherlab-nix";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, flake-utils, etherlab, ... }:
|
outputs = { self, nixpkgs, flake-utils, etherlab, ... }:
|
||||||
flake-utils.lib.eachDefaultSystem (system: {
|
flake-utils.lib.eachSystem [
|
||||||
packages.ec-controller = (import ./default.nix) { ethercat = etherlab.ethercat; };
|
"x86_64-linux" "i686-linux" "aarch64-linux"
|
||||||
defaultPackage.default = (import ./default.nix) { ethercat = etherlab.ethercat; };
|
] (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; };
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user