From b106528fd8db5f1004b5559b742c2f2825e39940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 11 Jul 2022 15:32:11 +0200 Subject: pkgs/libatsha204: use the correct I2C on Omnia --- pkgs/libatsha204/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/libatsha204/default.nix b/pkgs/libatsha204/default.nix index 2415985..96a621d 100644 --- a/pkgs/libatsha204/default.nix +++ b/pkgs/libatsha204/default.nix @@ -1,6 +1,6 @@ { stdenv, lib, fetchgit , pkg-config, perl, patchelf -,glibc , openssl, unbound +, glibc , openssl, unbound }: stdenv.mkDerivation rec { @@ -23,7 +23,12 @@ stdenv.mkDerivation rec { buildInputs = [openssl unbound]; nativeBuildInputs = [pkg-config perl patchelf]; - makeFlags = [ "RELEASE=1" "NO_DOC=1" ]; + makeFlags = [ + "RELEASE=1" + "NO_DOC=1" + "USE_LAYER=USE_LAYER_NI2C" + "DEFAULT_NI2C_DEV_PATH=NI2C_DEV_PATH_OMNIA" + ]; configurePhase = '' sed -i 's|/usr/bin/perl|${perl}/bin/perl|' build/embed_gen.pl build/normalize_dep_file.pl ''; -- cgit v1.2.3