diff --git a/src/default.nix b/src/default.nix index 0252fe1..762356d 100644 --- a/src/default.nix +++ b/src/default.nix @@ -23,6 +23,7 @@ let kernel = final.callPackage ./kernel { }; userspace = final.callPackage ./userspace { }; initramfs = final.callPackage ./initramfs { }; + flashrom = final.nixpkgsOnBuildForHost.callPackage ./util/flashrom { }; }; in (lib.makeScope @@ -37,7 +38,6 @@ in { kgpe = ownerboot (import ./platform/kgpe { inherit lib; }); em100 = nixpkgsOnBuildForBuild.callPackage ./util/em100 { }; - flashrom = nixpkgsOnBuildForBuild.callPackage ./util/flashrom { }; } diff --git a/src/platform/kevin/default.nix b/src/platform/kevin/default.nix index 6ed1a06..b5d05e6 100644 --- a/src/platform/kevin/default.nix +++ b/src/platform/kevin/default.nix @@ -103,9 +103,11 @@ in { ecfw-scripts = final.nixpkgsOnBuildForHost.callPackage (import ./ecfw/scripts.nix) { inherit (final) ectool ecfw; - flashrom-chromebook = final.nixpkgsOnBuildForHost.callPackage ../../util/flashrom { forChromebook = true; }; + flashrom-chromebook = final.flashrom; }; + flashrom = prev.flashrom.override { forChromebook = true; }; + ectool = final.nixpkgsOnBuildForHost.callPackage (import ../../util/ectool { boardName = "kevin"; }) { }; })]; }