From 9e592c975156ada021134790b766d7b057a7578d Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Thu, 30 Mar 2023 01:01:31 -0700 Subject: [PATCH] ectool: make boardName a non-package argument --- src/platform/kevin/default.nix | 2 +- src/util/ectool/default.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/platform/kevin/default.nix b/src/platform/kevin/default.nix index 0ff39d2..c87e3f7 100644 --- a/src/platform/kevin/default.nix +++ b/src/platform/kevin/default.nix @@ -88,6 +88,6 @@ in { ''; }); - ectool = final.nixpkgsOnBuildForHost.callPackage (import ../../util/ectool) { }; + ectool = final.nixpkgsOnBuildForHost.callPackage (import ../../util/ectool { boardName = "kevin"; }) { }; }); } diff --git a/src/util/ectool/default.nix b/src/util/ectool/default.nix index 430b40b..7caa5bd 100644 --- a/src/util/ectool/default.nix +++ b/src/util/ectool/default.nix @@ -1,8 +1,10 @@ +{ boardName +}: + { lib , stdenv , pkg-config , fetchFromGitHub -, boardName ? "kevin" }: let makeTarget = "build/${boardName}/util/ectool";