Add overlay
This commit is contained in:
11
flake.nix
11
flake.nix
@@ -10,6 +10,15 @@
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
kernel = pkgs.linux_latest;
|
||||
packagePaths = {
|
||||
ethercat = "./ethercat.nix";
|
||||
testmanager = "./testmanager.nix";
|
||||
dls = "./dls.nix";
|
||||
etherlab = "./etherlab.nix";
|
||||
qtpdwidgets = "./qtpdwidgets.nix";
|
||||
pdcom = "./pdcom.nix";
|
||||
pdserv = "./pdserv.nix";
|
||||
};
|
||||
in
|
||||
{
|
||||
packages.default = pkgs.callPackage ./ethercat.nix { inherit kernel; };
|
||||
@@ -20,7 +29,7 @@
|
||||
packages.qtpdwidgets = pkgs.libsForQt5.callPackage ./qtpdwidgets.nix {};
|
||||
packages.pdcom = pkgs.callPackage ./pdcom.nix {};
|
||||
packages.pdserv = pkgs.callPackage ./pdserv.nix {};
|
||||
#overlays.ethercat = final: prev: { ethercat };
|
||||
overlay = final: prev: (nixpkgs.lib.mapAttrs (n: v: prev.callPackage v { }) packagePaths);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user