From 071b532666dbf3cd573168622c41ff9ec8c69cd6 Mon Sep 17 00:00:00 2001 From: Nicolas Hiillos Date: Thu, 28 Sep 2023 10:05:21 +0300 Subject: [PATCH] Add overlay --- flake.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index ef7add6..922b378 100644 --- a/flake.nix +++ b/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); } ); }