summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2020-02-23 15:13:16 +0100
committerSergiusz Bazanski <q3k@q3k.org>2020-02-23 15:39:24 +0100
commit1735eb0cf6f0cf20580555a5989ef4efd786fd2b (patch)
tree12461d05eb447d1bae702041b7ddc3b3221cea48 /default.nix
parent25b41d64960765a33cf2b409f3b3c9247df164fa (diff)
downloadbitvend-1735eb0cf6f0cf20580555a5989ef4efd786fd2b.tar.gz
bitvend-1735eb0cf6f0cf20580555a5989ef4efd786fd2b.tar.bz2
bitvend-1735eb0cf6f0cf20580555a5989ef4efd786fd2b.tar.xz
bitvend-1735eb0cf6f0cf20580555a5989ef4efd786fd2b.zip
*: fixes for 64-bit RPi3 via NixOS
We force pigpio to not use the old broadcom fork mailbox interface, and we use a fork of pigpio that work with u-boot.
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/default.nix b/default.nix
index 3afa202..b83484f 100644
--- a/default.nix
+++ b/default.nix
@@ -18,6 +18,7 @@ let
inherit pyjwt;
inherit pytest;
inherit qrcode;
+ inherit raspberrypi-tools;
inherit requests;
inherit six;
};
@@ -92,15 +93,17 @@ in with upstream; let
pigpio = stdenv.mkDerivation rec {
pname = "pigpio";
- version = "74";
+ version = "74-q3k";
installFlags = [ "DESTDIR=$(out)" "prefix=" ];
src = pkgs.fetchFromGitHub {
- owner = "joan2937";
+ owner = "q3k";
repo = "pigpio";
- rev = "v${version}";
- sha256 = "1arq051dbki50rwhzdxjba3ispnl4vdw7mr244f5hmrk0p34frcy";
+ rev = "5a0b27c997631b3ba1a7778a176b6f5462233be4";
+ sha256 = "1b55bzfsyghd2lrfqmz6g935zsmwnhbcscb4g11hxm3g7a68g9vv";
};
+
+ propagatedBuildInputs = [ raspberrypi-tools ];
};
cygpio = buildPythonPackage {