From 2cf1b94b82ff557b5e37a3a944eced6ccff8d720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 2 Sep 2017 16:41:05 +0200 Subject: [PATCH] pythonPackages.pyrtlsdr: unbreak build pyrtlsdr needs pandoc at build time. Fixes the build since commit f6eb190e7030feac015bd1624d0dbb6825e28a9e ("python.pkgs.pyrtlsdr: disable tests to fix build"). (That commit bumped the package to a new version.) --- pkgs/development/python-modules/pyrtlsdr/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/pyrtlsdr/default.nix b/pkgs/development/python-modules/pyrtlsdr/default.nix index 4ce373ee7ad2..274e5b61c14f 100644 --- a/pkgs/development/python-modules/pyrtlsdr/default.nix +++ b/pkgs/development/python-modules/pyrtlsdr/default.nix @@ -2,6 +2,8 @@ , buildPythonPackage , fetchPypi , rtl-sdr +, pypandoc +, pandoc }: buildPythonPackage rec { @@ -14,6 +16,8 @@ buildPythonPackage rec { sha256 = "dd041143b68628c713c2227c78c40b0b4a0cb5d08df116f7bdc5f83c529be0e4"; }; + buildInputs = [ pypandoc pandoc ]; + postPatch = '' sed "s|driver_files =.*|driver_files = ['${rtl-sdr}/lib/librtlsdr.so']|" -i rtlsdr/librtlsdr.py '';