git.iko.soy/typeable/nixpkgs
on master help sign in
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.)

commit2cf1b94b82ff557b5e37a3a944eced6ccff8d720 authorBjørn Forsman <bjorn.forsman@gmail.com> dateSat 2 Sep 2017, 16:41 (9 years ago) parentdd09675
1 file changed+4
pkgs/development/python-modules/pyrtlsdr/default.nix+4
pkgs/development/python-modules/pyrtlsdr/default.nix+4
@@ -2,6 +2,8 @@
22, buildPythonPackage
33, fetchPypi
44, rtl-sdr
5+, pypandoc
6+, pandoc
57}:
68
79buildPythonPackage rec {
@@ -14,6 +16,8 @@ buildPythonPackage rec {
1416 sha256 = "dd041143b68628c713c2227c78c40b0b4a0cb5d08df116f7bdc5f83c529be0e4";
1517 };
1618
19+ buildInputs = [ pypandoc pandoc ];
20+
1721 postPatch = ''
1822 sed "s|driver_files =.*|driver_files = ['${rtl-sdr}/lib/librtlsdr.so']|" -i rtlsdr/librtlsdr.py
1923 '';