aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-07-11 15:32:11 +0200
committerKarel Kočí <cynerd@email.cz>2022-07-11 15:32:11 +0200
commitb106528fd8db5f1004b5559b742c2f2825e39940 (patch)
treef62d95f86d4ca74b1c464b5ad0a7cc7e608650d2
parente7e8404b2c04e7b361ff72d81d6273bd13d40800 (diff)
downloadnixturris-b106528fd8db5f1004b5559b742c2f2825e39940.tar.gz
nixturris-b106528fd8db5f1004b5559b742c2f2825e39940.tar.bz2
nixturris-b106528fd8db5f1004b5559b742c2f2825e39940.zip
pkgs/libatsha204: use the correct I2C on Omnia
-rw-r--r--pkgs/libatsha204/default.nix9
1 files 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
'';