pythonPackages.pywal: fix expression

This commit is contained in:
Frederik Rietdijk 2019-01-22 16:16:59 +01:00
parent b7d4a356be
commit a9a28e9236

View file

@ -1,10 +1,10 @@
{ lib, python3Packages, imagemagick, feh }:
{ lib, buildPythonPackage, fetchPypi, imagemagick, feh, isPy3k }:
python3Packages.buildPythonApplication rec {
buildPythonPackage rec {
pname = "pywal";
version = "3.2.1";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "1pj30h19ijwhmbm941yzbkgr19q06dhp9492h9nrqw1wfjfdbdic";
};
@ -19,6 +19,9 @@ python3Packages.buildPythonApplication rec {
./feh.patch
];
# Invalid syntax
disabled = !isPy3k;
postPatch = ''
substituteInPlace pywal/backends/wal.py --subst-var-by convert "${imagemagick}/bin/convert"
substituteInPlace pywal/wallpaper.py --subst-var-by feh "${feh}/bin/feh"