uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/development/python-modules/pywal/default.nix
Normal file
41
pkgs/development/python-modules/pywal/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, imagemagick, feh, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pywal";
|
||||
version = "3.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1drha9kshidw908k7h3gd9ws2bl64ms7bjcsa83pwb3hqa9bkspg";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./convert.patch
|
||||
./feh.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pywal/backends/wal.py --subst-var-by convert "${imagemagick}/bin/convert"
|
||||
substituteInPlace pywal/wallpaper.py --subst-var-by feh "${feh}/bin/feh"
|
||||
'';
|
||||
|
||||
# Invalid syntax
|
||||
disabled = !isPy3k;
|
||||
|
||||
preCheck = ''
|
||||
mkdir tmp
|
||||
HOME=$PWD/tmp
|
||||
|
||||
for f in tests/test_export.py tests/test_util.py ; do
|
||||
substituteInPlace "$f" \
|
||||
--replace '/tmp/' "$TMPDIR/"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate and change colorschemes on the fly. A 'wal' rewrite in Python 3";
|
||||
homepage = "https://github.com/dylanaraps/pywal";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ Fresheyeball ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue